Skip to content

Commit

Permalink
Fix bug in JidCreate.bareFrom(String)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Jun 6, 2015
1 parent 2a6166b commit a4cd63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jxmpp-jid/src/main/java/org/jxmpp/jid/impl/JidCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static BareJid bareFrom(String jid) throws XmppStringprepException {
String localpart = XmppStringUtils.parseLocalpart(jid);
String domainpart = XmppStringUtils.parseDomain(jid);
try {
if (localpart.length() == 0) {
if (localpart.length() != 0) {
bareJid = new LocalAndDomainpartJid(localpart, domainpart);
} else {
bareJid = new DomainpartJid(domainpart);
Expand Down

0 comments on commit a4cd63b

Please sign in to comment.