From ff4e237bd57879571cf9600d5453facadf8505f6 Mon Sep 17 00:00:00 2001 From: dotasek Date: Wed, 5 Jun 2024 15:29:00 -0400 Subject: [PATCH] Catch null --- .../org/hl7/fhir/validation/cli/services/ValidationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java index a8565b8fe..9d100cd94 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/cli/services/ValidationService.java @@ -490,7 +490,7 @@ public class ValidationService { System.out.println("No such cached session exists for session id " + sessionId + ", re-instantiating validator."); } ValidationEngine validationEngine; - if (hasBaseEngineForKey(cliContext.getBaseEngine())) { + if (cliContext.getBaseEngine() != null && hasBaseEngineForKey(cliContext.getBaseEngine())) { System.out.println("Building new validator engine from base engine: " + cliContext.getBaseEngine()); validationEngine = new ValidationEngine(getBaseEngine(cliContext.getBaseEngine())); /* As a service, it wouldn't be efficient to have a base validation engine