diff --git a/src/java/com/samskivert/util/ObjectUtil.java b/src/java/com/samskivert/util/ObjectUtil.java index c3390330..3b7af7c9 100644 --- a/src/java/com/samskivert/util/ObjectUtil.java +++ b/src/java/com/samskivert/util/ObjectUtil.java @@ -56,7 +56,7 @@ public class ObjectUtil */ public static > int compareTo (T left, T right) { - if (left == null && right == null) { + if (left == right) { // instances are both null or both the same instance return 0; } else if (left == null) { return -1;