Fix NullPointerException

This commit is contained in:
filoghost 2021-09-25 12:09:58 +02:00
parent 66bdda8bed
commit e8b2239c47

View File

@ -51,7 +51,7 @@ class TextLineViewer extends Viewer {
} }
public boolean updateIndividualText(String individualText) { public boolean updateIndividualText(String individualText) {
if (!this.individualText.equals(individualText)) { if (!Objects.equals(this.individualText, individualText)) {
this.individualText = individualText; this.individualText = individualText;
return true; return true;
} else { } else {