// Debug message
this.getLogger().debug(MessageFormat.format("item.id={0},item.itemId={1},item.itemType={2},item.amount={3}", item.getId(), item.getItemId(), item.getItemType(), item.getAmount())); //NOI18N
- // Init instance
- BasketBean basket;
try {
// Get session instance
HttpSession session = ((HttpServletRequest) request).getSession();
this.getLogger().debug(MessageFormat.format("bean={0}", bean)); //NOI18N
// Get basket instance
- basket = bean.getBasket();
+ BasketBean basket = bean.getBasket();
// Debug message
this.getLogger().debug(MessageFormat.format("basket={0}", basket)); //NOI18N
throw new NullPointerException(MessageFormat.format("item type of item={0} is null", item)); //NOI18N
} else if ((item.getAmount() == null) || (item.getAmount() == 0)) {
// Debug message
- this.getLogger().debug(MessageFormat.format("Amount for item {0} is null", item)); //NOI18N
+ this.getLogger().debug(MessageFormat.format("Amount for item {0} is null - EXIT!", item)); //NOI18N
// Amount is not entered
return;