Bug reports
Version 3.x > Bug reports > Minor ECommerce bug in ShoppingCartPreview.aspx View modes: 
User avatar
Member
Member
Mufasa - 1/31/2008 11:42:44 PM
   
Minor ECommerce bug in ShoppingCartPreview.aspx
Just a minor bug when a user clicks on the "Order Now" button, then goes back (via browser navigation) and hits the ~/CMSECommerce/ShoppingCart/ShoppingCartPreview.aspx page again. NullReferenceException on line 340 of the code-behind file.

Once again, this is a minor bug since the user probably shouldn't be doing that normally, but they can. So they shouldn't see an Exception page if they do try it anyway.

The problem code is trying to access a member of this.ShoppingCartInfoObj.ShoppingCartContentTable after the order has been sent for payment processing. But, it is null after the order has been sent.

I just fixed it temporarily by wrapping that foreach code block in a

if (this.ShoppingCartInfoObj.ShoppingCartContentTable != null)

block. But it should probably be a more formal check eventually.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/4/2008 11:52:40 AM
   
RE:Minor ECommerce bug in ShoppingCartPreview.aspx
Hi,
Unfortunately this is a bug. We are already aware of it and developers has ensured me that it should be fixed in the nearest, 3.1, version.

Thank you for your report and we are sorry for the inconvenience.

Best Regards,
Juraj Ondrus
Support Engineer