Skip to content

Commit

Permalink
Merge pull request #206 from SoftwareDesignLab/versioning-enhancement…
Browse files Browse the repository at this point in the history
…s-job-merge

null db fix in mitre
  • Loading branch information
ctevse authored Nov 30, 2023
2 parents a9edeb6 + c947423 commit cdeda01
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions reconciler/src/main/java/edu/rit/se/nvip/ReconcilerMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,21 @@ public static void main(String[] args) throws Exception {
Reconciler reconciler = ReconcilerFactory.createReconciler(ReconcilerEnvVars.getReconcilerType());
reconciler.setKnownCveSources(ReconcilerEnvVars.getKnownSourceMap());

NvdCveController nvdController = new NvdCveController();
nvdController.createDatabaseInstance();

MitreCveController mitreController = new MitreCveController();
mitreController.initializeController();

DataSource ds = DatabaseHelper.getInstance().getDataSource();
RawDescriptionRepository rawRepo = new RawDescriptionRepository(ds);
VulnerabilityRepository vulnRepo = new VulnerabilityRepository(ds);
CharacterizationRepository charRepo = new CharacterizationRepository(ds);
NvdMitreRepository nmRepo = new NvdMitreRepository(ds);
RunHistoryRepository rhRepo = new RunHistoryRepository(ds);

NvdCveController nvdController = new NvdCveController();
nvdController.createDatabaseInstance();

MitreCveController mitreController = new MitreCveController();
mitreController.setDatabaseHelper(nmRepo);
mitreController.initializeController();


ReconcilerController rc = new ReconcilerController(rawRepo, vulnRepo, charRepo, nmRepo, rhRepo, filterHandler, reconciler, nvdController, mitreController);

Messenger messenger = new Messenger(connectionFactory, inputQueueName, outputQueueName, rc);
Expand Down

0 comments on commit cdeda01

Please sign in to comment.