diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-07 23:38:42 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-07 23:38:42 +0200 |
commit | 1def6c8c04c0923c8d645325ef5ac160cef4d501 (patch) | |
tree | 81c8db0c950fc150a9c17894fa6fec3642694b8f /src/main/java/de/pixart/messenger/xml | |
parent | c58c0ad34778588f1631ea409b507c3725f2d4c9 (diff) |
fixed rare crash on jolla devices
Diffstat (limited to 'src/main/java/de/pixart/messenger/xml')
-rw-r--r-- | src/main/java/de/pixart/messenger/xml/Element.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/xml/Element.java b/src/main/java/de/pixart/messenger/xml/Element.java index 5ceb19c66..c2cb2a3b6 100644 --- a/src/main/java/de/pixart/messenger/xml/Element.java +++ b/src/main/java/de/pixart/messenger/xml/Element.java @@ -1,7 +1,6 @@ package de.pixart.messenger.xml; import android.support.annotation.NonNull; -import android.util.Log; import java.util.ArrayList; import java.util.HashMap; @@ -9,7 +8,6 @@ import java.util.Hashtable; import java.util.List; import java.util.Locale; -import de.pixart.messenger.Config; import de.pixart.messenger.utils.XmlHelper; import rocks.xmpp.addr.Jid; @@ -151,9 +149,8 @@ public class Element { final String jid = this.getAttribute(name); if (jid != null && !jid.isEmpty()) { try { - return Jid.of(jid); + return Jid.ofEscaped(jid); } catch (final IllegalArgumentException e) { - Log.e(Config.LOGTAG, "could not parse jid " + jid); return null; } } |