+ Start a Discussion

Custom Settings with Schedulable class

Hi All,


I am using custom settings in a class which is working fine if i call that method on click of a button. But when i schedule the same method, custom settings throws null pointer exception.


Can anyone give some pointer to this issue?


Thanks in advance.


Is your custom setting Hierarchical, and if so have you set values for the Org level? Otherwise when the Scheduled Apex runs, would there be valid values for the user context it runs in ?



Hi Enth,


Its "List" and "Protected". So i dont see the user context and role hirarchy as an issue.