Skip to main content
Ankita Gupta (TCS) 님이 #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개
  1. 2017년 3월 24일 오후 2:15
    Hi Gupta,

    "domainClassName" is not holding any value.

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