make xmppuri deal with null input
This commit is contained in:
parent
a23d9929f1
commit
1cc3f5bed7
|
@ -52,7 +52,10 @@ public class XmppUri {
|
||||||
return safeSource;
|
return safeSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void parse(Uri uri) {
|
protected void parse(final Uri uri) {
|
||||||
|
if (uri == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
String scheme = uri.getScheme();
|
String scheme = uri.getScheme();
|
||||||
String host = uri.getHost();
|
String host = uri.getHost();
|
||||||
|
|
Loading…
Reference in New Issue