Skip to content

fix: Avoid NPE on null search event or terms - #584

Open
cbartolome wants to merge 1 commit into
uPortal-Project:masterfrom
cbartolome:master
Open

cbartolome wants to merge 1 commit into
uPortal-Project:masterfrom
cbartolome:master

Conversation

@cbartolome

@cbartolome cbartolome commented Oct 29, 2026 •

Copy link
Copy Markdown

I'm submitting this one in the blind, since I'm not sure how to reproduce the problem. Our metrics show NullPointerExceptions sporadically coming from line 80 of SearchContentController.java and the only way those would be happening is if either the event were null or the search terms were null. We're not getting a detailed error message in our logs, so I don't know which is the case, so I fixed both possibilities.

It seems that these errors may be exclusive to users using Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant