diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-25 17:06:20 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-25 17:06:20 +0200 |
commit | b0a3c717d21ffc0c17aa123c171cce29e01d2884 (patch) | |
tree | cace210de18fddfe191700501d14c58f5bfa9783 /src/eu/siacs/conversations/xml/XmlReader.java | |
parent | dfbc42ecd795b8e5138f3dc123cdbbf8bf685209 (diff) |
wrap wakelock release with try catch
Diffstat (limited to 'src/eu/siacs/conversations/xml/XmlReader.java')
-rw-r--r-- | src/eu/siacs/conversations/xml/XmlReader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/xml/XmlReader.java b/src/eu/siacs/conversations/xml/XmlReader.java index b4b1647e..01a9e2d8 100644 --- a/src/eu/siacs/conversations/xml/XmlReader.java +++ b/src/eu/siacs/conversations/xml/XmlReader.java @@ -51,7 +51,7 @@ public class XmlReader { public Tag readTag() throws XmlPullParserException, IOException { if (wakeLock.isHeld()) { - wakeLock.release(); + try { wakeLock.release();} catch (RuntimeException re) {} } try { while(parser.next() != XmlPullParser.END_DOCUMENT) { @@ -75,7 +75,7 @@ public class XmlReader { } } if (wakeLock.isHeld()) { - wakeLock.release(); + try { wakeLock.release();} catch (RuntimeException re) {} } } catch (ArrayIndexOutOfBoundsException e) { throw new IOException("xml parser mishandled ArrayIndexOufOfBounds", e); |