Skip to content

Commit

Permalink
slight change on the item equal
Browse files Browse the repository at this point in the history
  • Loading branch information
finleyChen committed Jun 26, 2017
1 parent 89366be commit face1bc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;

Expand Down Expand Up @@ -138,7 +137,7 @@ public void excludeFields(String... fieldKeys) {
}

public boolean equals(Item anotherItem) {
return this.toMap().equals(anotherItem.toMap());
return anotherItem != null && this.toMap().equals(anotherItem.toMap());
}

}

0 comments on commit face1bc

Please sign in to comment.