mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-29 13:22:12 +02:00
add nullcheck in scanDirectory() on result of scanFile()
This commit is contained in:
@@ -552,10 +552,12 @@ public class Engine implements FileFilter, AutoCloseable {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final Dependency d = scanFile(f, projectReference);
|
final Dependency d = scanFile(f, projectReference);
|
||||||
|
if(d != null){
|
||||||
deps.add(d);
|
deps.add(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return deps;
|
return deps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user