aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-31 09:43:58 +0200
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-03-31 09:43:58 +0200
commit92e07133731c53689284bea108c91f06bf76b7e3 (patch)
tree9cdb64b59c4789fc4b8499c0f4480c078774f002
parentad3e23fa7c4bb2521c860f218dfa0b950285790d (diff)
null pointer fix
-rw-r--r--src/eu/siacs/conversations/xml/Tag.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/xml/Tag.java b/src/eu/siacs/conversations/xml/Tag.java
index 970cf0ae..7055e2b3 100644
--- a/src/eu/siacs/conversations/xml/Tag.java
+++ b/src/eu/siacs/conversations/xml/Tag.java
@@ -56,11 +56,11 @@ public class Tag {
}
public boolean isStart(String needle) {
- return (this.type == START) && (this.name.equals(needle));
+ return (this.type == START) && (needle.equals(this.name));
}
public boolean isEnd(String needle) {
- return (this.type == END) && (this.name.equals(needle));
+ return (this.type == END) && (needle.equals(this.name));
}
public boolean isNo() {