make xmppuri deal with null input

This commit is contained in:
Daniel Gultsch 2018-07-06 20:16:04 +02:00
parent a23d9929f1
commit 1cc3f5bed7
1 changed files with 4 additions and 1 deletions

View File

@ -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();