diff --git a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java index b1192fd98..390d1a7c3 100644 --- a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java +++ b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java @@ -411,7 +411,7 @@ public class TreeBidiMap, V extends Comparable> imple */ public Set> entrySet() { if (entrySet == null) { - return new EntryView(); + entrySet = new EntryView(); } return entrySet; } @@ -2092,7 +2092,7 @@ public class TreeBidiMap, V extends Comparable> imple public Set> entrySet() { if (entrySet == null) { - return new InverseEntryView(); + entrySet = new InverseEntryView(); } return entrySet; }