Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Design a section property to be populated using the pzgetdropdownoptions activity.
  2. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us