+ Start a Discussion
SF DEVSF DEV 

Testcase issue

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

 

"h" is holiday object (standard one)

 

error in this line - Class

b = h.ActivityDate.daysBetween(h.RecurrenceStartDate);

kirkevonphillykirkevonphilly

Can you provide more details on the code surrounding this?  Keep in mind that some holidays specified may not be recurring, so you may need to wrap the error causing line with if (h.RecurrenceStartDate != null).