JarFile.java (verifyHashes): Check whether ZipEntry exists.
* java/util/jar/JarFile.java (verifyHashes): Check whether ZipEntry
exists.
From-SVN: r95347
This commit is contained in:
committed by
Mark Wielaard
parent
95b49c6f9d
commit
c149185b71
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user