Fixes are available
APAR status
Closed as program error.
Error description
'When calling hasUser on the TeamScriptable in the JS API and the user does not exist, then this results in a NullPointerException like this: Caused by: java.lang.NullPointerException at com.lombardisoftware.core.script.js.objects.TeamScriptable. jsFunction_hasUser(TeamScriptable.java:270) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:60) (DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161) at org.mozilla.javascript.FunctionObject.call (FunctionObject.java:467) at org.mozilla.javascript.Interpreter.interpretLoop (Interpreter.java:3330) at org.mozilla.javascript.Interpreter.interpret (Interpreter.java:2487) at org.mozilla.javascript.InterpretedFunction.call (InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall (ContextFactory.java:398) at org.mozilla.javascript.ScriptRuntime.doTopCall (ScriptRuntime.java:3070) at org.mozilla.javascript.InterpretedFunction.exec (InterpretedFunction.java:175) at com.lombardisoftware.core.script.js.JSScript.exec (JSScript.java:69) at com.lombardisoftware.core.script.js.JavaScriptRunner$2. execute(JavaScriptRunner.java:248) at com.lombardisoftware.core.script.js.PreparedScope. executeWithScope(PreparedScope.java:216) at com.lombardisoftware.core.script.js.JavaScriptRunner. execute(JavaScriptRunner.java:246)
Local fix
N/A
Problem summary
When using hasUser on the TeamScriptable or isInRole on the UserScriptable this can lead to a NullPointerException, if the user/role does not exist. If the user/role can not be retrieved by BPM this NullPointerException can occur, because the code in the JavaScript API does not expect the result to be null.
Problem conclusion
With this interim fix the JavaScript API will be fixed so that the two functions on the two scriptables can deal with null values. FIX AVAILABILITY: iFix for 8.5.0.1 is/will be available on Fix Central; search for APAR JR49549 at http://www.ibm.com/support/fixcentral/ When obtaining any of the above fixes, be sure to download the accompanying readme, for itself, and any prerequisite fixes, and review them thoroughly.
Temporary fix
Comments
APAR Information
APAR number
JR49549
Reported component name
BPM ADVANCED
Reported component ID
5725C9400
Reported release
850
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-03-06
Closed date
2014-05-07
Last modified date
2014-05-07
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
BPM STANDARD
Fixed component ID
5725C9500
Applicable component levels
R850 PSY
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
12 October 2021