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
IC-TannerIC-Tanner 

access to sobjType.getDescribe() method based on profile?

Via our managed package, users are getting a “Attempt to re-reference null object” error when access a VF page. The error references the following system method: sobjType.getDescribe(). Here is the full code:

 Schema.SObjectType sobjType = gd.get('npe01__OppPayment__c');  
 Schema.DescribeSObjectResult r = sobjType.getDescribe();

I assumed this was due to a a lack of read access on the 'npe01__OppPayment__c' object but the error still occurs after access is provided ( as well as with full CRUD access). The error only goes away when the "Customize Application"  permission is provided on the profile. Any insight if there is another permission that is appliable or why else this is occuring? We cannot provide the "Customize Application" permission.

Thanks!