You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do I trap for NullPointerException error on getconfigattrvalue?

Summary

Content (please ensure you mask any confidential information):

I am getting a NullPointerException on getconfigattrvalue. How do I trap for this?

I have a whole list of attributes that may or may not have been selected in config. I need to cycle through them to determine if they were selected what the contents is. So I need to trap for the possibility of the attribute not being selected. "NOT isNull" is not working.

Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

recSet = BMQL("SELECT Attribute FROM ConfigRuleCalcAttrib WHERE RuleName=$ruleName AND PartNum=$prtNum");

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!