Skip to content

Commit

Permalink
Settable property value set null check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stasgora committed Sep 19, 2019
1 parent ae87045 commit 3845d84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.stasgora</groupId>
<artifactId>observetree</artifactId>
<version>1.0.2</version>
<version>1.0.2.1</version>

<name>Observetree</name>
<description>Library providing observables arranged in tree structure with propagating events</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package io.github.stasgora.observetree;

import java.io.Serializable;
import java.util.Objects;
import java.util.function.UnaryOperator;

/**
Expand Down Expand Up @@ -68,7 +69,7 @@ public T get() {
* @param modelValue value to be set
*/
public void set(T modelValue) {
if(this.modelValue.equals(modelValue)) {
if(Objects.equals(this.modelValue, modelValue)) {
return;
}
this.modelValue = modelValue;
Expand Down

0 comments on commit 3845d84

Please sign in to comment.