cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1348862 - /cxf/trunk/bin/DoMerges.java
Date Mon, 11 Jun 2012 14:22:20 GMT
Author: dkulp
Date: Mon Jun 11 14:22:19 2012
New Revision: 1348862

URL: http://svn.apache.org/viewvc?rev=1348862&view=rev
Log:
Allow empty ranges

Modified:
    cxf/trunk/bin/DoMerges.java

Modified: cxf/trunk/bin/DoMerges.java
URL: http://svn.apache.org/viewvc/cxf/trunk/bin/DoMerges.java?rev=1348862&r1=1348861&r2=1348862&view=diff
==============================================================================
--- cxf/trunk/bin/DoMerges.java (original)
+++ cxf/trunk/bin/DoMerges.java Mon Jun 11 14:22:19 2012
@@ -109,6 +109,9 @@ public class DoMerges {
         }
         public void optimize(Ranges blocked, Set<Integer> ignores) {
             Iterator<Range> it = this.iterator();
+            if (!it.hasNext()) {
+                return;
+            }
             Range last = it.next();
             while (it.hasNext()) {
                 Range r = it.next();



Mime
View raw message