I've been using Custom Settings for a while, and now I'm running into situations where I don't see the results coming back - this setting is one of the first I created, to turn code on & off, although this particular value/reference is new:
The API Name is
NxCode_Switch__c, and it has values for
Debug(Debug__c), among others. I reference it the way I've been doing (although I typically use
NxCode_Switch__c callRefAssociation = NxCode_Switch__c.getInstance('Call Reference processing'); Boolean isActive = (callRefAssociation == null || callRefAssociation.isActive__c == false) ? false : true; Boolean bDebug = (callRefAssociation == null || (isActive == false || callRefAssociation.Debug__c == false)) ? false : true;
Pretty straightforward. Both the code & this particular value of custom setting are in the same Sandbox, but now both getInstance() and getValues() are returning null.
I'm using eclipse, API version 31.0, for what that's worth.