fixed crash in MessageAdapter caused by empty xmpp: uri
This commit is contained in:
parent
d17a8cdcb9
commit
182b4c08b5
|
@ -185,6 +185,9 @@ public class XmppUri {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isJidValid() {
|
public boolean isJidValid() {
|
||||||
|
if (jid == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Jid.of(jid);
|
Jid.of(jid);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue