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
swapna muthiyaluswapna muthiyalu 

Hi Friends, If(schema.sobjecttype.Contact_Cash_Tracking__c.isaccessible()) { If (string.valueof(account.Validation_Methods__c).contains ('Cash Tracking')) }

For the line 2 the following error is thrown:

System.NullPointerException: Attempt to de-reference a null object

How to avoid this exception?

Please help.