From 535c6b0e183484a835c344a8d540bc3f3fce1be6 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 8 Apr 2018 21:05:59 +0200 Subject: fixed crash in MessageAdapter caused by empty xmpp: uri --- src/main/java/de/pixart/messenger/utils/XmppUri.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/de/pixart/messenger') 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; -- cgit v1.2.3