Skip to content

Commit

Permalink
avoid NPE at hashcode()
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil committed Oct 28, 2018
1 parent a3b280b commit 3f5de9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/amihaiemil/eojsonp/RtJsonString.java
Expand Up @@ -65,7 +65,7 @@ public ValueType getValueType() {

@Override
public int hashCode() {
return this.value.hashCode();
return String.valueOf(this.value).hashCode();
}

@Override
Expand Down

0 comments on commit 3f5de9b

Please sign in to comment.