Support Article

MultiSelectList Control throws NullPointerException on Post valu

SA-29378

Summary



When the user configured use case which has MultiSelectList control performing Post Value with OnChange event, it throws a NullPointerException while running through the scenario.


Error Messages



java.lang.NullPointerException


 

java.lang.NullPointerException 
	at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.getElement(PropertyReferenceImpl.java:3402) 
	at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.doGet(PropertyReferenceImpl.java:1399) 
	at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.doGet(PropertyReferenceImpl.java:1372) 
	at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.doGet(PropertyReferenceImpl.java:1356) 
	at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.get(PropertyReferenceImpl.java:1182) 
	at com.pega.pegarules.session.internal.mgmt.Executable.getProperty(Executable.java:2241) 
	at com.pegarules.generated.activity.ra_action_reloadcell_e6d86ed8037d4666c03480eb2b9c0dea.step1_circum0(ra_action_reloadcell_e6d86ed8037d4666c03480eb2b9c0dea.java:247) 
	at com.pegarules.generated.activity.ra_action_reloadcell_e6d86ed8037d4666c03480eb2b9c0dea.perform(ra_action_reloadcell_e6d86ed8037d4666c03480eb2b9c0dea.java:69) 


Steps to Reproduce



1. Configure a repeating grid in a section
2. Include a property as a column in the grid which has th control as multislectlist.
3. In the actions tab from the property panel of that control, use "OnChange" ->Post Value



4. Observe the behavior by running through the scenario.


Root Cause



The multi select control, in the user scenario is a non-autogenerated control, which currently does not have a support for Post-Value and Refresh this Section

Resolution



The multi select control, in the user scenario is a non-autogenerated control, which currently does not have a support. 
It has been planned in the future release for making multiselect an autogenerated control providing the post value feature. 

Below is the change suggested: 
1. Use the multiselect (non-autogenerated) control inside a section and configuring refresh this section, on the control. 
2. Refresh this section context is currently only the multiselect control, hence it is only a part of the screen getting refreshed, and it also posts the value to the clipboard.

 

Published October 20, 2016 - Updated October 23, 2016

Have a question? Get answers now.

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