Attempt to de-reference a null object: Salesforce
I am trying to submit data to a server where it is picked and stored in salesforce. The error I am getting is "Attempt to de-reference a null object" at the server. so I am wondering what the problem is... Below is the sample code: public static List<String> processAgentVisitSurvey(ProcessSurveySubmission.SurveySubmission submission, Map<String, Submission_Answer__c> answers, Person__c person) { // Load the TDR TDR__c tdr = loadTdr(person); if (tdr == null) { //Send an email saying that an unregistered person is trying to act a TDR // Send back the error message return new String[] { '0', 'Use
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.