+ 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
Hi,

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