+ 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.