mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
resolved issue #213
Former-commit-id: e50ac440ea63132f387c28fc2f8e0f3ff81d9896
This commit is contained in:
@@ -160,6 +160,10 @@ public class CPEAnalyzer implements Analyzer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isOpen() {
|
||||||
|
return cpe != null && cpe.isOpen();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Searches the data store of CPE entries, trying to identify the CPE for the given dependency based on the evidence contained
|
* Searches the data store of CPE entries, trying to identify the CPE for the given dependency based on the evidence contained
|
||||||
* within. The dependency passed in is updated with any identified CPE values.
|
* within. The dependency passed in is updated with any identified CPE values.
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public class Engine extends org.owasp.dependencycheck.Engine {
|
|||||||
protected Analyzer initializeAnalyzer(Analyzer analyzer) {
|
protected Analyzer initializeAnalyzer(Analyzer analyzer) {
|
||||||
if ((analyzer instanceof CPEAnalyzer)) {
|
if ((analyzer instanceof CPEAnalyzer)) {
|
||||||
CPEAnalyzer cpe = getPreviouslyLoadedCPEAnalyzer();
|
CPEAnalyzer cpe = getPreviouslyLoadedCPEAnalyzer();
|
||||||
if (cpe != null) {
|
if (cpe != null && cpe.isOpen()) {
|
||||||
return cpe;
|
return cpe;
|
||||||
}
|
}
|
||||||
cpe = (CPEAnalyzer) super.initializeAnalyzer(analyzer);
|
cpe = (CPEAnalyzer) super.initializeAnalyzer(analyzer);
|
||||||
|
|||||||
Reference in New Issue
Block a user