Skip to content
This repository was archived by the owner on Sep 27, 2025. It is now read-only.

Commit a018cc3

Browse files
authored
fix: npe (#5339)
2 parents be9719f + 71ffdcf commit a018cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/owasp/dependencycheck/analyzer/NodePackageAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ private void processDependencies(JsonObject json, File baseDir, File rootFile,
394394
continue;
395395
}
396396

397-
version = jo.getString("version");
397+
version = jo.getString("version", "");
398398
optional = jo.getBoolean("optional", false);
399399
isDev = jo.getBoolean("dev", false);
400400
} else {

0 commit comments

Comments
 (0)