diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-08 21:05:59 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-08 21:05:59 +0200 |
commit | 535c6b0e183484a835c344a8d540bc3f3fce1be6 (patch) | |
tree | ef168a066861f35dc0f5338a9511e69c4ea60ecb /src | |
parent | bdd23a5ff2d1d1e82a83f72c7889db33376ae50f (diff) |
fixed crash in MessageAdapter caused by empty xmpp: uri
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/XmppUri.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/XmppUri.java b/src/main/java/de/pixart/messenger/utils/XmppUri.java index fec5ff039..9ab3f1769 100644 --- a/src/main/java/de/pixart/messenger/utils/XmppUri.java +++ b/src/main/java/de/pixart/messenger/utils/XmppUri.java @@ -189,6 +189,9 @@ public class XmppUri { } public boolean isJidValid() { + if (jid == null) { + return false; + } try { Jid.of(jid); return true; |