From 87bfdb0c2b0f45c65aecd52d50fd3a045884de70 Mon Sep 17 00:00:00 2001 From: valery1707 Date: Tue, 3 Oct 2023 10:55:52 +0300 Subject: [PATCH] Check for null value with the appropriate assertion method --- .../uhn/fhir/narrative/CustomThymeleafNarrativeGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/narrative/CustomThymeleafNarrativeGenerator.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/narrative/CustomThymeleafNarrativeGenerator.java index c1d4985128e..9a3c0e25346 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/narrative/CustomThymeleafNarrativeGenerator.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/narrative/CustomThymeleafNarrativeGenerator.java @@ -70,7 +70,7 @@ public class CustomThymeleafNarrativeGenerator extends BaseThymeleafNarrativeGen public NarrativeTemplateManifest getManifest() { NarrativeTemplateManifest retVal = myManifest; if (myManifest == null) { - Validate.isTrue(myPropertyFile != null, "Neither a property file or a manifest has been provided"); + Validate.notNull(myPropertyFile, "Neither a property file or a manifest has been provided"); retVal = NarrativeTemplateManifest.forManifestFileLocation(myPropertyFile); setManifest(retVal); }