You need to sign in to do that
Don't have an account?
Eric Witzerman 1
APEX Error: AccountTrigger caused an unexpected exception, contact your admin: AccountTrigger: execution of AfterUpdate caused by: System.NullPointerException: Attempt to de-reference a null object: ()
Here is the code:
trigger AccountTrigger on Account (after update) {
if(Trigger.IsUpdate && Trigger.IsAfter) {
AccountTriggerHandler.handleAfterUpdate(Trigger.newMap, Trigger.oldMap);
}
}
trigger AccountTrigger on Account (after update) {
if(Trigger.IsUpdate && Trigger.IsAfter) {
AccountTriggerHandler.handleAfterUpdate(Trigger.newMap, Trigger.oldMap);
}
}
Usually there's a stacktrace along with the exception that tells you the exact line of code where it's happening. That should help you find where the problem is.