Skip to content

Commit 686e1cf

Browse files
authored
fix: resolve NPE when processing CVE-2025-2682 (#7558)
1 parent c480822 commit 686e1cf

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/org/owasp/dependencycheck/data/nvdcve

1 file changed

+1
-1
lines changed

core/src/main/java/org/owasp/dependencycheck/data/nvdcve/CveDB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ public void updateVulnerability(DefCveItem cve, String baseEcosystem) {
10901090
clearCache();
10911091
final String cveId = cve.getCve().getId();
10921092
try {
1093-
if (cve.getCve().getVulnStatus().toUpperCase().startsWith("REJECT")) {
1093+
if (cve.getCve().getVulnStatus() != null && cve.getCve().getVulnStatus().toUpperCase().startsWith("REJECT")) {
10941094
deleteVulnerability(cveId);
10951095
} else {
10961096
if (cveItemConverter.testCveCpeStartWithFilter(cve)) {

0 commit comments

Comments
 (0)