Check for null value with the appropriate assertion method
This commit is contained in:
parent
4e9bd153cf
commit
87bfdb0c2b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue