Tag: Attempt to de-reference a null object

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

System.NullPointerException: Attempt to de-reference a null object How to solve System.NullPointerException: Attempt to de-reference a null object error System.NullPointerException: Attempt to de-reference a null object is very common error in apex class.  It occurs when your variable (sobject, list, set or any other data type) is not initialized (allocated memory). In order to use the non primitive data type …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/system-nullpointerexception-attempt-to-de-reference-a-null-object/