From f457c629eebff5f14cc9a00985fe3e3ab5b7046f Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 28 Mar 2014 13:32:36 +0100 Subject: [PATCH] fixed another null pointer reported by he crash reporter. this thing is awesome --- src/eu/siacs/conversations/xml/XmlReader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eu/siacs/conversations/xml/XmlReader.java b/src/eu/siacs/conversations/xml/XmlReader.java index fdf5835a9..7ae9a7b38 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()) {