Page 1 of 1

Problem in BuyProductDialog

Posted: Wed May 27, 2009 8:33 am
by cgreathouse
Hello

When I'm viewing a product I'm noticing the following text right below the "Add to Wishlist" and "Add to Cart" button.

[[ConLib:BuyProductDialog]] Object reference not set to an instance of an object.

I haven't been able to figure out what's causing this to show up. Anybody have any ideas on what's causing this?

Thanks!

Re: Problem in BuyProductDialog

Posted: Wed May 27, 2009 9:20 am
by mazhar
Do you have any customization on your product details page or any custom component placed over product details page?

Re: Problem in BuyProductDialog

Posted: Wed May 27, 2009 9:52 am
by cgreathouse
I found the problem.

I had some customizations in BuildProductChoices() where I was searching for a control and then setting the visibility. However I wasn't checking for null before setting the visibility. Once I added a check the error went away.

Re: Problem in BuyProductDialog

Posted: Wed May 27, 2009 9:57 am
by mazhar
sounds good