fixed another null pointer reported by he crash reporter. this thing is awesome

Daniel Gultsch created

Change summary

src/eu/siacs/conversations/xml/XmlReader.java | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

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()) {