fix(nuget): Handling null when finding inspector files. (Fixes
@@ -71,11 +71,13 @@ public class NugetInspectorExtractor {
final List<File> dependencyNodeFiles = fileFinder.findFiles(outputDirectory, INSPECTOR_OUTPUT_PATTERN);
final List<NugetParseResult> parseResults = new ArrayList<>();
+ if (dependencyNodeFiles != null) {
for (final File dependencyNodeFile : dependencyNodeFiles) {
final String text = FileUtils.readFileToString(dependencyNodeFile, StandardCharsets.UTF_8);
final NugetParseResult result = nugetInspectorParser.createCodeLocation(text);
parseResults.add(result);
}
+ }
final List<CodeLocation> codeLocations = parseResults.stream()
.flatMap(it -> it.codeLocations.stream())
