Bear Bibeault wrote:You're not even looking in the right file. The NPE is happening in ShoppingCart, not the servlet.
Hint: look closely at ShoppingCart. The problem should be almost immediately obvious.
Oh, sorry. I know it's happening on the ShoppingCart file. Added the other file just in case.
However, I'm not able to see what the problem is. O.o Maybe I'm a little too tired, but can't really see what the issue is.