mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-24 09:18:47 +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 {
|
||||
final Dependency d = scanFile(f, projectReference);
|
||||
if(d != null){
|
||||
deps.add(d);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return deps;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user