Check for null value with the appropriate assertion method

This commit is contained in:
valery1707 2023-10-03 10:55:52 +03:00 committed by GitHub
parent 4e9bd153cf
commit 87bfdb0c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}