New answers tagged

1

I think you have an incorrect logic here: public InsertCandidatecontroller() { if(can !=null) { can = new Candidate__c(); } insert can; } Shouldn't you instantiate a new Candidate__c object when it is null? if(can == null) { can = new Candidate__c(); }


Top 50 recent answers are included