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

This commit is contained in:
Daniel Gultsch 2014-03-28 13:32:36 +01:00
parent b966464324
commit f457c629ee
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ public class XmlReader {
element.setContent(nextTag.getName()); element.setContent(nextTag.getName());
nextTag = this.readTag(); nextTag = this.readTag();
} }
if (nextTag == null) {
throw new IOException("unterupted mid tag");
}
//Log.d(LOGTAG,"reading till the end of "+element.getName()); //Log.d(LOGTAG,"reading till the end of "+element.getName());
while(!nextTag.isEnd(element.getName())) { while(!nextTag.isEnd(element.getName())) {
if (!nextTag.isNo()) { if (!nextTag.isNo()) {