harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r552362 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
Date Sun, 01 Jul 2007 20:26:20 GMT
Author: tellison
Date: Sun Jul  1 13:26:20 2007
New Revision: 552362

URL: http://svn.apache.org/viewvc?view=rev&rev=552362
Log:
Apply fix as part of HARMONY-3146 (atlassian-jira-standard-3.7.3 standalone distro won' t
start on r505120)

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java?view=diff&rev=552362&r1=552361&r2=552362
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/java/java/util/jar/InitManifest.java
Sun Jul  1 13:26:20 2007
@@ -77,8 +77,10 @@
 
         list.clear();
         byte[] chunk = null;
-        while (chunks == null ? readLines(is, list) : (chunk = nextChunk(is,
-                list)) != null) {
+        while (chunks == null ? readLines(is, list) : (chunk = nextChunk(is, list)) != null)
{
+            if (list.size() == 0) {
+                continue;
+            }
             it = list.iterator();
             String line = it.next();
             if (line.length() < 7



Mime
View raw message