Suppress NPE
This commit is contained in:
@@ -70,6 +70,10 @@ public final class IntegrityChecker {
|
|||||||
for (ZipEntry entry : zip.stream().toArray(ZipEntry[]::new)) {
|
for (ZipEntry entry : zip.stream().toArray(ZipEntry[]::new)) {
|
||||||
String filename = entry.getName();
|
String filename = entry.getName();
|
||||||
try (InputStream in = zip.getInputStream(entry)) {
|
try (InputStream in = zip.getInputStream(entry)) {
|
||||||
|
if (in == null) {
|
||||||
|
throw new IOException("entry is null");
|
||||||
|
}
|
||||||
|
|
||||||
if (SIGNATURE_FILE.equals(filename)) {
|
if (SIGNATURE_FILE.equals(filename)) {
|
||||||
signature = IOUtils.readFullyAsByteArray(in);
|
signature = IOUtils.readFullyAsByteArray(in);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user