You need to sign in to do that
Don't have an account?
Aiyaz
Trigger (nullpointexception)
I'm working on a trigger on a task that currently works if related to Accounts, however I receive the error (shown below) when attempting to save a task that is not related to an account which I understand. Since the trigger is designed to fire on Task Insert or Update, I need to fire only if its related to Accounts, or Contacts (or both) but no other objects. Any suggestions?
Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger AccountLastCallDate caused an unexpected exception, contact your administrator: AccountLastCallDate: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object: Trigger.AccountLastCallDate: line 33, column 9
Review all error messages below to correct your data.
Apex trigger AccountLastCallDate caused an unexpected exception, contact your administrator: AccountLastCallDate: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object: Trigger.AccountLastCallDate: line 33, column 9