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
faceroy123faceroy123 

System.NullPointerException: Attempt to de-reference a null object

Hi,

 

I have a custom process for converting leads in our org.

I have added some more fields to this to map over to opportunities that are created upon conversion.

 

However upon testing the class i'm getting this error: System.NullPointerException: Attempt to de-reference a null object

"Class.CustomLeadConverterController.<init>: line 81, column 1
Class.CustomLeadConverterControllerTest.myUnitTest: line 81, column 1"

 

 

Here is the test:

 

 

I need to deploy these changes but unsure what that message means and what I need to amend in order to fix.

 

Thanks

Jeff MayJeff May

which is line 81 for you?