Skip to content

Commit

Permalink
Fixed NPE in OptionValueChange.isTangible().
Browse files Browse the repository at this point in the history
  • Loading branch information
smelamud committed Jul 13, 2022
1 parent ec155df commit ca9d1d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/moera/node/option/OptionValueChange.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.moera.node.option;

import java.util.Objects;
import java.util.UUID;

public class OptionValueChange {
Expand Down Expand Up @@ -49,7 +50,7 @@ public void setNewValue(Object newValue) {
}

public boolean isTangible() {
return !previousValue.equals(newValue);
return !Objects.equals(previousValue, newValue);
}

}

0 comments on commit ca9d1d2

Please sign in to comment.