diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-09 22:11:55 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-09 22:11:55 +0200 |
commit | e4a9cecddab5fd53d30c49fe759788d2a5f74ad0 (patch) | |
tree | 6438182a38a4c55d9e6658487d62086fd4587cee /src/main | |
parent | 83f53eb8e93212313aa8003d1e478d7eb9d7986c (diff) |
make xmppuri deal with null input
Diffstat (limited to 'src/main')
-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(); |