aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-08 21:05:59 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-08 21:05:59 +0200
commit535c6b0e183484a835c344a8d540bc3f3fce1be6 (patch)
treeef168a066861f35dc0f5338a9511e69c4ea60ecb /src/main/java
parentbdd23a5ff2d1d1e82a83f72c7889db33376ae50f (diff)
fixed crash in MessageAdapter caused by empty xmpp: uri
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/utils/XmppUri.java3
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;