when i click on a product to add it in cart, following error is displayed:
Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details:
System.NullReferenceException: Object reference not set to an instance of an
object.
Source Error:
Line 256: Sku sku = new Sku("Sku", skuId); Line 257: if(sku.SkuId > 0) { Line 258: if ((!ThisPage.Product.AllowNegativeInventories) && (sku.Inventory > 0)) { Line 259: string previouslySelectedValue = ThisPage.Quantity.SelectedValue; Line 260: ThisPage.Quantity.Enabled = true; |
Source File: e:\dc_3.0_Source_B\Web\controls\attributeSelector.ascx.cs
Line: 258