diff --git a/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java b/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java index f31d5191b..99fab3af9 100644 --- a/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java +++ b/src/main/java/org/apache/commons/collections4/comparators/FixedOrderComparator.java @@ -257,7 +257,7 @@ public class FixedOrderComparator implements Comparator, Serializable { @Override public int hashCode() { int total = 17; - total = total*37 + (map == null ? 0 : map.hashCode()); + total = total*37 + map.hashCode(); total = total*37 + (unknownObjectBehavior == null ? 0 : unknownObjectBehavior.hashCode()); total = total*37 + counter; total = total*37 + (isLocked ? 0 : 1);