Support Article
NullPointerException occurs when using pzgetdropdownoptions
SA-47000
Summary
NullPointerException occurs while using the pzgetdropdownoptions activity.
Error Messages
765 [ http-apr-80-exec-1] [TABTHREAD3] . . . Exception
java.lang.NullPointerException
at com.pega.pegarules.data.internal.dictionary.PropertyInfoImpl.lookForLocalizedMessage(PropertyInfoImpl.java:1253) ~[prprivate.jar:?]
at com.pega.pegarules.data.internal.dictionary.PropertyInfoImpl.getLocalizedText(PropertyInfoImpl.java:1206) ~[prprivate.jar:?]
at com.pega.pegarules.data.internal.dictionary.DictionaryImpl.getLocalizedText(DictionaryImpl.java:417) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.getLocalizedTextForString(Executable.java:7549) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.getLocalizedTextForString(Executable.java:7493) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.getLocalizedTextForString(Executable.java:7488) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.getLocalizedTextForString(Executable.java:7483) ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_pzgetdropdownoptions_218a35b09093c871283f3f5c59968374.step4_circum0(ra_action_pzgetdropdownoptions_218a35b09093c871283f3f5c59968374.java:728) ~[?:?]
at com.pegarules.generated.activity.ra_action_pzgetdropdownoptions_218a35b09093c871283f3f5c59968374.perform(ra_action_pzgetdropdownoptions_218a35b09093c871283f3f5c59968374.java:124) ~[?:?]
Steps to Reproduce
- Design a section property to be populated using the pzgetdropdownoptions activity.
- Launch the section when the pxResults list is still not formed.
Root Cause
The pzgetdropdownoptions activity avoids calling the getLocalizedTextForString if there is no pxResults list. However, in this case, the pxResults list is present but was empty.
Resolution
Perform the following local-change:
Ensure the pxResults list is either deleted or contains values.
Published March 30, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.