From 121312d1032772d9520b3cb05e15af962d1974b3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 2 Aug 2016 10:58:54 +0200 Subject: [PATCH] catch all throwables when parsing xml --- src/main/java/eu/siacs/conversations/xml/XmlReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/xml/XmlReader.java b/src/main/java/eu/siacs/conversations/xml/XmlReader.java index 48569086b..1e6b89d34 100644 --- a/src/main/java/eu/siacs/conversations/xml/XmlReader.java +++ b/src/main/java/eu/siacs/conversations/xml/XmlReader.java @@ -81,8 +81,8 @@ public class XmlReader { } } - } catch (Exception e) { - throw new IOException("xml parser mishandled "+e.getClass().getName(), e); + } catch (Throwable throwable) { + throw new IOException("xml parser mishandled "+throwable.getClass().getName(), throwable); } finally { if (wakeLock.isHeld()) { try {