Support Article
NullPointerException when clicking Clear Filter on table
SA-62951
Summary
NullPointerException is generated in the log on clicking the Clear Filter link after filtering a column in a table.
The exception is from Step 2 of the pzSortClipBoardData activity. According to the Tracer, the exception occurs when the step page on the call to it from Step 4 of pzGetGridColUniqueValues is blank. This results in pzSortClipBoardData having the same primary page as pzGetGridColUniqueValues.
Error Messages
java.lang.NullPointerException
at com.pegarules.generated.activity.ra_action_pzsortclipboarddata_0c878499a78c46471e566c57ce9aac4a.step2_circum0(ra_action_pzsortclipboarddata_0c878499a78c46471e566c57ce9aac4a.java:257) ~[?:?]
at com.pegarules.generated.activity.ra_action_pzsortclipboarddata_0c878499a78c46471e566c57ce9aac4a.perform(ra_action_pzsortclipboarddata_0c878499a78c46471e566c57ce9aac4a.java:87) ~[?:?]
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3421) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10794) ~[prprivate.jar:?]
at com.pegarules.generated.activity.ra_action_pzgetgridcoluniquevalues_2a5df65c53476fc7b831beeb349462ac.step4_circum0(ra_action_pzgetgridcoluniquevalues_2a5df65c53476fc7b831beeb349462ac.java:1130) ~[?:?]
at com.pegarules.generated.activity.ra_action_pzgetgridcoluniquevalues_2a5df65c53476fc7b831beeb349462ac.perform(ra_action_pzgetgridcoluniquevalues_2a5df65c53476fc7b831beeb349462ac.java:127) ~[?:?]
a ...
Steps to Reproduce
- Filter a column in the table.
- Sort the column.
- Click 'Clear Filter' to stop filtering the table.
Root Cause
A defect in Pegasystems’ code or rules.
The pzSortClipboardData activity was invoked when it should not be.
Resolution
Apply HFix-46229.
Published February 19, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.