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
Ankita Gupta 65Ankita Gupta 65 

Error in assignment# Apply Domain layer Principles 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');
Dev-FoxDev-Fox
Hi Gupta,
"domainClassName" is not holding any value.
Use debug statements and confirm that you are assigning something to it.
Edmondo Porcu 2Edmondo Porcu 2
Hello Gupta I have the same problem were you able to solve it?