Activity Forums Salesforce® Discussions When does the error "Attempt to de-reference a null object" occurs?

  • chanchal kumar

    Member
    August 31, 2018 at 2:42 pm

    Hello Anurag,

    This error is caused by a line of code that is trying to use an object that has not been instantiated, or an object's attribute that has not been initialized.

    NOTE: If the field Site was left empty, it will generate the error message as well.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos