Issue #419 - Avoiding a duplicate CPE Index Created message and resource leak.

This commit is contained in:
Anthony Whitford
2015-12-14 00:52:48 -08:00
parent e204971a6c
commit 25a15dea8c

View File

@@ -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.