Commit c149185b by Mark Wielaard Committed by Mark Wielaard

JarFile.java (verifyHashes): Check whether ZipEntry exists.

       * java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry
       exists.

From-SVN: r95347
parent 95b49c6f
2005-02-21 Mark Wielaard <mark@klomp.org>
* java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry
exists.
2005-02-21 Andrew Haley <aph@redhat.com>
* Makefile.in: Rebuilt.
......
......@@ -726,7 +726,14 @@ public class JarFile extends ZipFile
byte[] entryBytes = null;
try
{
entryBytes = readManifestEntry(super.getEntry(entry));
ZipEntry e = super.getEntry(entry);
if (e == null)
{
if (DEBUG)
debug("verifyHashes: no entry '" + entry + "'");
return false;
}
entryBytes = readManifestEntry(e);
}
catch (IOException ioe)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment