Support Article

NPE thrown after calling remove post upgrade

SA-39325

Summary



User mentioned that their application was recently upgraded from Pega 7.1.9 to Pega 7.2.2.

The java step containing the code below was working fine in Pega 7.1.9, post-upgrade it is now throwing a NullPointerException:

String CurrPageRef = tools.getStepPage().getReference();
tools.getStepPage().remove(CurrPageRef);


Error Messages



NullPointerException


Steps to Reproduce



The steps to reproduce the issue is not known.


Root Cause



During copy when user validates the back link of a property, user is assuming that the forward link of the cached reference property which is referring to this property always has the reference link. In User scenario the link is broken causing NPE.

Resolution



Apply HFix-35008.

Published June 13, 2017 - Updated July 31, 2017

Have a question? Get answers now.

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