Skip to main content
Ankita Gupta (TCS) ha fatto una domanda in #Apex
Working on assignment where I'm getting the below error in fflib_SObjectDomain class.

Apex trigger AccountsTrigger caused an unexpected exception, contact your administrator: AccountsTrigger: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object: Class.fflib_SObjectDomain.triggerHandler: line 346, column 1

This line is 

Type constructableClass = domainClassName.endsWith('Constructor') ? Type.forName(domainClassName) : Type.forName(null,domainClassName+'.Constructor');
2 risposte
  1. 24 mar 2017, 14:15
    Hi Gupta,

    "domainClassName" is not holding any value.

    Use debug statements and confirm that you are assigning something to it.