From 1cc3f5bed7df4f43a08479738b030f7c57bc6752 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 6 Jul 2018 20:16:04 +0200 Subject: [PATCH] make xmppuri deal with null input --- src/main/java/eu/siacs/conversations/utils/XmppUri.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/XmppUri.java b/src/main/java/eu/siacs/conversations/utils/XmppUri.java index 325b9706c..0deb66a80 100644 --- a/src/main/java/eu/siacs/conversations/utils/XmppUri.java +++ b/src/main/java/eu/siacs/conversations/utils/XmppUri.java @@ -52,7 +52,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();