fix npe in test cases

This commit is contained in:
Grahame Grieve 2024-09-25 05:16:02 -04:00
parent 54353f8fce
commit 6289638833
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ public class ValidationService {
TerminologyCache cache = new TerminologyCache(new Object(), cliContext.getTxCache());
validationEngine.getContext().initTxCache(cache);
}
if (validationEngine.getContext().getTxCache().getFolder() == null) {
if (validationEngine.getContext().getTxCache() == null || validationEngine.getContext().getTxCache().getFolder() == null) {
System.out.println(" No Terminology Cache");
} else {
System.out.println(" Terminology Cache at "+validationEngine.getContext().getTxCache().getFolder());