- changed status to resolved
Last commit to xmpp-addr broke withLocal(String) for domain Jids
Issue #151
resolved
Ever since the refactor in the last commit to xmpp-addr creating a bare jid from a domain jid fails with NPE
Jid domainJid = Jid.of("domain.tld");
System.out.println(domainJid.withLocal("local").toEscapedString());
throws Exception in thread "main" java.lang.NullPointerException at java.base/java.lang.String.contentEquals(String.java:1095) at rocks.xmpp.addr.FullJid.withLocal(FullJid.java:394)
Comments (2)
-
repo owner -
repo owner Thanks for reporting this issue!
Turned out
"".equals(null)
returnsfalse
while"".contentEquals(null)
throws NPE. - Log in to comment
Fix NPE in Jid.withLocal
Fixes issue
#151→ <<cset 160f88297967>>