From 75bcd1adec4e4fc6f70a2f99665ea07ada367fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Thu, 27 Dec 2018 01:31:48 +0100 Subject: [PATCH] Update StringMan.java --- .../intellectualsites/plotsquared/plot/util/StringMan.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/StringMan.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/StringMan.java index d488ab98f..4404f509c 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/StringMan.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/util/StringMan.java @@ -240,8 +240,10 @@ public class StringMan { } public static boolean isEqual(String a, String b) { - return a.equals(b) || b != null && a.length() == b.length() && a.hashCode() == b.hashCode() - && a.equals(b); + return (a == b) || ((a != null) && (b != null) && (a.length() == b.length()) && + (a.hashCode() == b.hashCode()) && a.equals(b)); + // return a.equals(b) || b != null && a.length() == b.length() && a.hashCode() == b.hashCode() + // && a.equals(b); } public static boolean isEqualIgnoreCase(String a, String b) {