Merge pull request #420 from awhitford/Issue419

Issue #419 - Avoiding a duplicate CPE Index Created message
This commit is contained in:
Jeremy Long
2015-12-18 05:51:26 -05:00

View File

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