From 92e07133731c53689284bea108c91f06bf76b7e3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 31 Mar 2014 09:43:58 +0200 Subject: [PATCH] null pointer fix --- src/eu/siacs/conversations/xml/Tag.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eu/siacs/conversations/xml/Tag.java b/src/eu/siacs/conversations/xml/Tag.java index 970cf0aed..7055e2b39 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() {