diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-05-07 11:34:45 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-05-07 11:34:45 +0200 |
commit | fb7525e0b999d6aecffcd4d0501329e6080a5073 (patch) | |
tree | 6ace1ebafd76f5c396f8b9c660c701779e8c9ee5 /src/main | |
parent | 76889b9c58b27438b4b73474b325483cb859a3e7 (diff) |
catch all exceptions thrown by xml pull parser
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xml/XmlReader.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/main/java/eu/siacs/conversations/xml/XmlReader.java b/src/main/java/eu/siacs/conversations/xml/XmlReader.java index aeaaa5931..b8aa3aa06 100644 --- a/src/main/java/eu/siacs/conversations/xml/XmlReader.java +++ b/src/main/java/eu/siacs/conversations/xml/XmlReader.java @@ -96,17 +96,8 @@ public class XmlReader { } catch (RuntimeException re) { } } - } catch (ArrayIndexOutOfBoundsException e) { - throw new IOException( - "xml parser mishandled ArrayIndexOufOfBounds", e); - } catch (StringIndexOutOfBoundsException e) { - throw new IOException( - "xml parser mishandled StringIndexOufOfBounds", e); - } catch (NullPointerException e) { - throw new IOException("xml parser mishandled NullPointerException", - e); - } catch (IndexOutOfBoundsException e) { - throw new IOException("xml parser mishandled IndexOutOfBound", e); + } catch (Exception e) { + throw new IOException("xml parser mishandled "+e.getClass().getName(), e); } return null; } |