diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-05-07 11:34:45 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-05-13 21:51:12 +0200 |
commit | 345966f3193d545e8fbe1fd50667f996e52a73f3 (patch) | |
tree | 6aa1c3b5e538134f1e117a976a875181ab17943d /src | |
parent | 65acc39d48b6b2739f887a8184239723a681e29b (diff) |
catch all exceptions thrown by xml pull parser
Diffstat (limited to 'src')
-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; } |