You need to sign in to do that
Don't have an account?

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;]
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;]
Can you please share the code here. Before sending email please check list is empty or not.