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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.