Author: michiel
Date: 2010-07-15 10:50:06 +0200 (Thu, 15 Jul 2010)
New Revision: 42893

Modified:
   
mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/bridge/util/BridgeCollections.java
Log:
MMB-1973

Modified: 
mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/bridge/util/BridgeCollections.java
===================================================================
--- 
mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/bridge/util/BridgeCollections.java
 2010-07-14 19:01:45 UTC (rev 42892)
+++ 
mmbase/branches/MMBase-1_9/core/src/main/java/org/mmbase/bridge/util/BridgeCollections.java
 2010-07-15 08:50:06 UTC (rev 42893)
@@ -314,7 +314,10 @@
         public Object getProperty(Object key) { return null; }
         public Map<Object, Object> getProperties() { return 
Collections.emptyMap(); }
         @Override
-        public BridgeList<E> subList(int fromIndex, int toIndex) { throw new 
IndexOutOfBoundsException(); }
+        public BridgeList<E> subList(int fromIndex, int toIndex) {
+            if (fromIndex == 0 && toIndex == 0) return this;
+            throw new IndexOutOfBoundsException();
+        }
         public void setProperty(Object key, Object value) { throw new 
UnsupportedOperationException(); }
         public void sort() { throw new UnsupportedOperationException(); }
         public void sort(Comparator<? super E> comparator) { throw new 
UnsupportedOperationException(); }

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to