aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-07-09 22:11:55 +0200
committerChristian Schneppe <christian@pix-art.de>2018-07-09 22:11:55 +0200
commite4a9cecddab5fd53d30c49fe759788d2a5f74ad0 (patch)
tree6438182a38a4c55d9e6658487d62086fd4587cee /src/main
parent83f53eb8e93212313aa8003d1e478d7eb9d7986c (diff)
make xmppuri deal with null input
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/utils/XmppUri.java5
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();