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
jaywhybeejaywhybee 

Null pointer exception

I have an app that is getting a System.NullPointerException: Attempt to de-reference a null object at a customer account.  Does this error log any information about the error that I can ask the customer to provide - if so how does one get to the info?

Andrew WilkinsonAndrew Wilkinson

Have the user turn on debug logs for their user account in the setup of their org. Have them replicate the issue. Once the issue is reached they will be able to download the debug log where it was turned on and send it to you.

jaywhybeejaywhybee

does this logging apply to managed apps also -- i.e. can customers get exception information from a managed app as you described

Andrew WilkinsonAndrew Wilkinson

Yes. Once you enable it for a user that user is basically tracked in the system. When there is an error the debug log is accessible through the same screen the user was set up for debugging. Once the debug log is created, I would remove the user so it doesn't always create the logs.