diff options
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/XmppUri.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/XmppUri.java b/src/main/java/de/pixart/messenger/utils/XmppUri.java index 23ec4efa4..db0002a29 100644 --- a/src/main/java/de/pixart/messenger/utils/XmppUri.java +++ b/src/main/java/de/pixart/messenger/utils/XmppUri.java @@ -57,7 +57,10 @@ public class XmppUri { return safeSource; } - protected void parse(Uri uri) { + protected void parse(final Uri uri) { + if (uri == null) { + return; + } this.uri = uri; String scheme = uri.getScheme(); String host = uri.getHost(); |