function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suhas rathodsuhas rathod 

Issue in adding product to opportunity

I am adding opportunity, when adding product to new opportunity its throw following error.

Attempt to de-reference a null object
Error is in expression '{!addSelectedProduct}' in page searchproduct
An unexpected error has occurred. Your development organization has been notified.

i have given read,edit access to opportunity, read access to product and price list.

thanks for your help
Abhinav GuptaAbhinav Gupta
This is not an access issue, you need to share more code for anyone to help and tell where the Null pointer error is coming. Either share  your controller code or debug the "addSelectedProduct"  method to find what could be null and is referenced.
suhas rathodsuhas rathod
some user able to add product, so i think this problem is not with code.