Hi,
I having some trouble with the following workflow condition:
cfValues['class'].value != 'Smart'
The condition works great as long there is an value in the custom field "class", like smart, clever,..,
but if the custom field isn t filled (null) an exception is the result:
javax.script.ScriptException: java.lang.NullPointerException
Debbuging with assert says:
javax.script.ScriptException: java.lang.NullPointerException: Cannot get property 'value' on null object
Does anybody know how to change the condition to avoid the exception?
Thanks, Benjamin
Try the following:
null != cfValues['class'] && cfValues['class'].value != 'Smart'
Updated, small error was inside)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.