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
sreenathsreenath 

ERROR: Attempt to de-reference a null object

Hello developers,

                        I have two dev accounts, in one account i have small project with classes,objects,visualforce tabs...

same to same i am copying all from one account to another completely. Now i am seeing this error in 'visual forcef' tabs

 

 ERROR: Attempt to de-reference a null object

 

why this error, help me...

SPrashantSPrashant

try checking for HARD CODED IDs in your Code, that belong to your older org.

 

 

alexbalexb

The only way to find the exact problem is to look at the debug logs. Really, without a line number, it would be very difficult to find what the exact error is. So, your next step is to find a line number and class/visualforce page name in the debug logs. Go to that line number in the class or page and see what's there.