[findBugs] Fix potential NPE in DirCacheCheckoutTest
Change-Id: I842cbdd14bf56cb2bd599255fe90a5a3aea0d304 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
44936a1216
commit
48b772bec1
|
@ -1705,7 +1705,8 @@ public void assertWorkDir(Map<String, String> i)
|
|||
+ " in workDir. ", buffer, i.get(path).getBytes());
|
||||
nrFiles++;
|
||||
} else if (file.isDirectory()) {
|
||||
if (file.list().length == 0) {
|
||||
String[] files = file.list();
|
||||
if (files != null && files.length == 0) {
|
||||
assertEquals("found unexpected empty folder for path "
|
||||
+ path + " in workDir. ", "/", i.get(path));
|
||||
nrFiles++;
|
||||
|
|
Loading…
Reference in New Issue