diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Mention.java b/mastodon/src/main/java/org/joinmastodon/android/model/Mention.java index 80188c771d..bb153e4604 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Mention.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Mention.java @@ -34,7 +34,10 @@ public boolean equals(Object o){ @Override public int hashCode(){ - int result=id.hashCode(); + int result = 0; + if (id != null) { + result=id.hashCode(); + } result=31*result+url.hashCode(); return result; }