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.
|