• Vinod Kumar 231
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
I have my own Salesforce consulting practice, based in the general New York area of the US.  We do a lot of work with a Salesforce application that is designed for law firms and legal offices.  If you are interested in working with me on various on-going Salesforce projects, please contact me directly at donal@dpmtechnology.com
  • April 19, 2018
  • Like
  • 4
Hi all, I'm trying to run a simple trigger before delete. The error I'm getting is:

System.NullPointerException: Attempt to de-reference a null object


Code:
trigger deleteMultiday on SFDC_Special_Event__c (before delete) {

        for (SFDC_Special_Event__c co : Trigger.new)
        {

        }//end main for

}//end trigger

 I originally had logic in the loop but removed it to see if it was causing the error. But the error is still showing with this code. The above code works perfectly in insert/update triggers.