From 1def6c8c04c0923c8d645325ef5ac160cef4d501 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 7 Apr 2018 23:38:42 +0200 Subject: fixed rare crash on jolla devices --- src/main/java/de/pixart/messenger/xml/Element.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main/java/de/pixart/messenger/xml') 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; } } -- cgit v1.2.3