Update NugetInspectorExtractor.java
Fixing string array operations.
@@ -87,8 +87,8 @@ public class NugetInspectorExtractor {
if (StringUtils.isNotBlank(nugetIncludedModules)) {
options.add("--included_modules=" + nugetIncludedModules);
}
- final String[] nugetPackagesRepo = detectConfigWrapper.getProperty(DetectProperty.DETECT_NUGET_PACKAGES_REPO_URL);
- if (StringUtils.isNotBlank(nugetPackagesRepo)) {
+ final String[] nugetPackagesRepo = detectConfigWrapper.getStringArrayProperty(DetectProperty.DETECT_NUGET_PACKAGES_REPO_URL);
+ if (nugetPackagesRepo.length > 0) {
final String packagesRepos = Arrays.asList(nugetPackagesRepo).stream().collect(Collectors.joining(","));
options.add("--packages_repo_url=" + packagesRepos);
}
