Happy Business Starts Here

Highlighted
Zuora Support

"Attempt to de-reference a null object" when clicking on New Quote

Problem - Customer was getting an error below as soon as they were clicking on the "New Quote" button. 

 

Attempt to de-reference a null object

 






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support

Re: "Attempt to de-reference a null object" when clicking on New Quote

Solution - In this specific case, when I added the debug logs and reproduced the error, I found that the issue was mainly due to the error below -

 

 

VF_PAGE_MESSAGE|An exception was encountered when attempting to populate default value: (zqu.PropertyComponentController.PropertyComponentPluginException)An Apex class with the name <Custom Class Name> could not be found in the local org or Z-Quotes package namespace.


When I checked the class 
<Custom Class Name> in their Salesforce org, I was unable to find it. I checked their "Component Registration" under "Zuora Config" and this class was being used by one of the plugin for create quote component as shown below and hence the error was thrown when trying to create a new quote. 

CompPlugin.png






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √