mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-25 18:41:44 +01:00
Issue #419 - Avoiding a duplicate CPE Index Created message and resource leak.
This commit is contained in:
@@ -134,6 +134,7 @@ public class CPEAnalyzer implements Analyzer {
|
|||||||
* process.
|
* process.
|
||||||
*/
|
*/
|
||||||
public void open() throws IOException, DatabaseException {
|
public void open() throws IOException, DatabaseException {
|
||||||
|
if (!isOpen()) {
|
||||||
cve = new CveDB();
|
cve = new CveDB();
|
||||||
cve.open();
|
cve.open();
|
||||||
cpe = CpeMemoryIndex.getInstance();
|
cpe = CpeMemoryIndex.getInstance();
|
||||||
@@ -147,6 +148,7 @@ public class CPEAnalyzer implements Analyzer {
|
|||||||
throw new DatabaseException(ex);
|
throw new DatabaseException(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes the data sources.
|
* Closes the data sources.
|
||||||
|
|||||||
Reference in New Issue
Block a user