diff --git a/core/src/main/java/org/owasp/dependencycheck/analyzer/NodePackageAnalyzer.java b/core/src/main/java/org/owasp/dependencycheck/analyzer/NodePackageAnalyzer.java index 12875f915c0..28976bd142e 100644 --- a/core/src/main/java/org/owasp/dependencycheck/analyzer/NodePackageAnalyzer.java +++ b/core/src/main/java/org/owasp/dependencycheck/analyzer/NodePackageAnalyzer.java @@ -394,7 +394,7 @@ private void processDependencies(JsonObject json, File baseDir, File rootFile, continue; } - version = jo.getString("version"); + version = jo.getString("version", ""); optional = jo.getBoolean("optional", false); isDev = jo.getBoolean("dev", false); } else {