Added null check

This commit is contained in:
tastybento 2022-04-16 15:21:29 -07:00
parent 44ad32df50
commit 37d2039a67

View File

@ -179,7 +179,7 @@ public abstract class PagedSelector<T>
description.add(""); description.add("");
description.add(this.user.getTranslation(Constants.TIPS + "left-click-to-edit")); 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")); description.add(this.user.getTranslation(Constants.TIPS + "right-click-to-clear"));
} }