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
Eric Witzerman 1Eric 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);
I don't see anything wrong with your trigger, so I'm guessing that exception is coming from further down the call stack (inside the call to "AccountTriggerHandler.handleAfterUpdate").

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.