mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-23 16:58:50 +02: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.
|
||||
*/
|
||||
public void open() throws IOException, DatabaseException {
|
||||
if (!isOpen()) {
|
||||
cve = new CveDB();
|
||||
cve.open();
|
||||
cpe = CpeMemoryIndex.getInstance();
|
||||
@@ -147,6 +148,7 @@ public class CPEAnalyzer implements Analyzer {
|
||||
throw new DatabaseException(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the data sources.
|
||||
|
||||
Reference in New Issue
Block a user