I came accross a piece of code like this:
if (null == sessionProxy.getShoppingCart()) { throw new IllegalStateException("ShoppingCart may not be null"); }
Can you find what’s ‘wrong’ with this? Note I have put wrong in quotes.
sharing my passion about software and game development
I came accross a piece of code like this:
if (null == sessionProxy.getShoppingCart()) { throw new IllegalStateException("ShoppingCart may not be null"); }
Can you find what’s ‘wrong’ with this? Note I have put wrong in quotes.