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
bensondanielbensondaniel 

Attempt to de-reference a null object

Please help me with this error.

When I try to load my Visualforce page this comes up...

 

Attempt to de-reference a null object 

 

An unexpected error has occurred. Your development organization has been notified.

 


bob_buzzardbob_buzzard

We'll need a bit more information than this I'm afraid.  It  is likely to mean that you have a variable/property/sobject reference/field that is null, but you are assuming that it isn't and executing a method on it. 

 

We'll need to see the code - do you have any more information regarding where the error occurs (e.g. line number)?