Kaydet (Commit) 9740a474 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326429 Dereference null return value

Change-Id: Ib047f6cb255610422afb423006b58e0da7eacead
üst 2092a029
......@@ -207,13 +207,12 @@ public class UCBStreamHandler extends URLStreamHandler {
InputStream is) throws
IOException {
ZipEntry entry;
ZipInputStream zis = new ZipInputStream(is);
while (zis.available() != 0) {
entry = zis.getNextEntry();
ZipEntry entry = zis.getNextEntry();
if (entry.getName().equals(file)) {
if (entry != null && entry.getName().equals(file)) {
return zis;
}
}
......@@ -275,4 +274,4 @@ public class UCBStreamHandler extends URLStreamHandler {
return result;
}
}
\ No newline at end of file
}
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