Skip to content

Commit

Permalink
SAK-47763 NPE protection on startsWith (sakaiproject#10842)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored Sep 2, 2022
1 parent a61d482 commit 77307af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public boolean matches(String reference) {

log.debug("matches({})", reference);

return reference.startsWith(ConversationsService.REFERENCE_ROOT);
return reference != null && reference.startsWith(ConversationsService.REFERENCE_ROOT);
}

public boolean matches(Event event) {
Expand Down

0 comments on commit 77307af

Please sign in to comment.