Skip to content

Commit

Permalink
Make AbstractJid.equals(CharSequence) null safe
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Oct 25, 2015
1 parent b88aa81 commit c553a64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jxmpp-jid/src/main/java/org/jxmpp/jid/impl/AbstractJid.java
Expand Up @@ -142,6 +142,9 @@ public final boolean equals(Object other) {

@Override
public final boolean equals(CharSequence charSequence) {
if (charSequence == null) {
return false;
}
return equals(charSequence.toString());
}

Expand Down

0 comments on commit c553a64

Please sign in to comment.