aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/xml/XmlReader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/gultsch/chat/xml/XmlReader.java')
-rw-r--r--src/de/gultsch/chat/xml/XmlReader.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/gultsch/chat/xml/XmlReader.java b/src/de/gultsch/chat/xml/XmlReader.java
index 8963f8d7a..e94296659 100644
--- a/src/de/gultsch/chat/xml/XmlReader.java
+++ b/src/de/gultsch/chat/xml/XmlReader.java
@@ -86,8 +86,10 @@ public class XmlReader {
}
//Log.d(LOGTAG,"reading till the end of "+element.getName());
while(!nextTag.isEnd(element.getName())) {
- Element child = this.readElement(nextTag);
- element.addChild(child);
+ if (!nextTag.isNo()) {
+ Element child = this.readElement(nextTag);
+ element.addChild(child);
+ }
nextTag = this.readTag();
}
//Log.d(LOGTAG,"return with element"+element);