aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/xml/XmlReader.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-03 16:04:27 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-03 16:04:27 +0100
commit7d79852c8403a8882061480cfb524724b84857ec (patch)
treef5c33e5753ce99199ebc26639299549e4ff5f510 /src/de/gultsch/chat/xml/XmlReader.java
parent3d9294684c739cc54de8dfa08ad22097ca8a1811 (diff)
fixed a bug in xml parsing
Diffstat (limited to '')
-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 8963f8d7..e9429665 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);