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
Dev 23Dev 23 

Attempt to de-reference a null object;getStatusCode=UNKNOWN_EXCEPTION

Hello All,

I am getting below error while triggering the email template using Apex trigger update. Can someone help me out from the below issue

Error: Messaging.SendEmailResult[getErrors=(Messaging.SendEmailError[getMessage=common.apex.runtime.impl.ExecutionException: Attempt to de-reference a null object;getStatusCode=UNKNOWN_EXCEPTION;getTargetObjectId=00521000000Yr6GAAS;]);isSuccess=false;]
veda shriveda shri

Can you please share the code here. Before sending email please check list is empty or not.