This is an automated email from the ASF dual-hosted git repository.

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new d931c8d  EMPIREDB-357 bugfix
d931c8d is described below

commit d931c8dbdd9bb19b7ea3166c4892c13b583b62b9
Author: Rainer Döbele <[email protected]>
AuthorDate: Fri Jul 23 11:42:46 2021 +0200

    EMPIREDB-357
    bugfix
---
 empire-db/src/main/java/org/apache/empire/commons/StringUtils.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/empire-db/src/main/java/org/apache/empire/commons/StringUtils.java 
b/empire-db/src/main/java/org/apache/empire/commons/StringUtils.java
index 4f1cb46..9b7a20a 100644
--- a/empire-db/src/main/java/org/apache/empire/commons/StringUtils.java
+++ b/empire-db/src/main/java/org/apache/empire/commons/StringUtils.java
@@ -253,8 +253,10 @@ public class StringUtils
         if (s1==s2)
             return true;
         // Empty
-        if (isEmpty(s1) && isEmpty(s2))
-            return true;
+        if (isEmpty(s1))
+            return isEmpty(s2);
+        else if (isEmpty(s2))
+            return false;
         // Compare 
         return s1.equals(s2);
     }

Reply via email to