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

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

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