diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-08-02 10:58:54 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-08-02 10:58:54 +0200 |
commit | 121312d1032772d9520b3cb05e15af962d1974b3 (patch) | |
tree | 566bf5b43c9f679501d9560eaad48062a89f5a5d /src | |
parent | d02e24248f0d38e084336e463da559fedc3ac896 (diff) |
catch all throwables when parsing xml
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xml/XmlReader.java | 4 |
1 files 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 48569086..1e6b89d3 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 { |