diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-03-28 13:32:36 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-03-28 13:32:36 +0100 |
commit | f457c629eebff5f14cc9a00985fe3e3ab5b7046f (patch) | |
tree | b3900018012da9d5bd3f5b0affa5f829b29667c9 /src/eu/siacs/conversations/xml/XmlReader.java | |
parent | b9664643243118550eef7c23026660a1cf3113e1 (diff) |
fixed another null pointer reported by he crash reporter. this thing is awesome
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/xml/XmlReader.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xml/XmlReader.java b/src/eu/siacs/conversations/xml/XmlReader.java index fdf5835a..7ae9a7b3 100644 --- a/src/eu/siacs/conversations/xml/XmlReader.java +++ b/src/eu/siacs/conversations/xml/XmlReader.java @@ -85,6 +85,9 @@ public class XmlReader { element.setContent(nextTag.getName()); nextTag = this.readTag(); } + if (nextTag == null) { + throw new IOException("unterupted mid tag"); + } //Log.d(LOGTAG,"reading till the end of "+element.getName()); while(!nextTag.isEnd(element.getName())) { if (!nextTag.isNo()) { |