diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/XmppUri.java | 7 |
1 files changed, 6 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 24c0b3bff..24f1efafe 100644 --- a/src/main/java/de/pixart/messenger/utils/XmppUri.java +++ b/src/main/java/de/pixart/messenger/utils/XmppUri.java @@ -76,7 +76,12 @@ public class XmppUri { if (uri.getAuthority() != null) { jid = uri.getAuthority(); } else { - jid = uri.getSchemeSpecificPart().split("\\?")[0]; + String[] parts = uri.getSchemeSpecificPart().split("\\?"); + if (parts.length > 1) { + jid = parts[0]; + } else { + return; + } } this.fingerprints = parseFingerprints(uri.getQuery()); this.body = parseBody(uri.getQuery()); |