Catch null

This commit is contained in:
dotasek 2024-06-05 15:29:00 -04:00
parent a2cf7897f0
commit ff4e237bd5
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ public class ValidationService {
System.out.println("No such cached session exists for session id " + sessionId + ", re-instantiating validator."); System.out.println("No such cached session exists for session id " + sessionId + ", re-instantiating validator.");
} }
ValidationEngine validationEngine; 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()); System.out.println("Building new validator engine from base engine: " + cliContext.getBaseEngine());
validationEngine = new ValidationEngine(getBaseEngine(cliContext.getBaseEngine())); validationEngine = new ValidationEngine(getBaseEngine(cliContext.getBaseEngine()));
/* As a service, it wouldn't be efficient to have a base validation engine /* As a service, it wouldn't be efficient to have a base validation engine