Skip to content

Commit

Permalink
Added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Apr 16, 2022
1 parent 44ad32d commit 37d2039
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ else if (button == CommonButtons.SEARCH)
description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "left-click-to-edit"));

if (!this.searchString.isEmpty())
if (this.searchString != null && !this.searchString.isEmpty())
{
description.add(this.user.getTranslation(Constants.TIPS + "right-click-to-clear"));
}
Expand Down

0 comments on commit 37d2039

Please sign in to comment.