Support Article
Null pointer exception when searching
SA-5106
Summary
On certain searches a null pointer exception is occuring in the FTSContentExecutor class.
Error Messages
java.lang.NullPointerException
at com.pega.pegarules.search.internal.es.FTSQueryExecutor$WorkResultPackager.handleDirectMatch(FTSQueryExecutor.java:528)
at com.pega.pegarules.search.internal.es.FTSQueryExecutor.executeQuery(FTSQueryExecutor.java:183)
at com.pega.pegarules.search.internal.es.FTSQueryExecutor.executeQuery(FTSQueryExecutor.java:68)
at com.pega.pegarules.search.internal.es.FTSContentExecutor.executeGenericQuery(FTSContentExecutor.java:123)
at com.pega.pegarules.search.internal.es.FTSContentExecutor.execute(FTSContentExecutor.java:108)
at com.pega.pegarules.search.internal.es.FTSContentExecutor.execute(FTSContentExecutor.java:50)
Root Cause
The root cause of this problem is a backwards compatibility defect in Pegasystems’ code/rules, caused by a null pyID property in the indexed Work instance.
Resolution
This issue is resolved by installing hotfix item HFix-20439. After installing the hotfix the result without the key will appear in the list; however there will be no link to allow a user to open the item. Alternatively the class with the results that do not contain a key can be excluded from the search by enabling the "Exclude this class from search" checkbox in the advanced tab of the the Class edit form.
Published January 31, 2016 - 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.