From: Roland Häder Date: Tue, 30 Aug 2016 10:32:32 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a618a6df697fc8cd80d96cdaddd3257dc28ec6b5;p=jjobs-ejb.git Please cherry-pick: - test on template variables add, can be none set, but should not be null --- diff --git a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java index 46b35a0..5d7f97b 100644 --- a/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java @@ -175,6 +175,9 @@ public class JobsEmailDeliveryMessageBean extends BaseJobsDatabaseBean implement } else if (wrapper.getTemplateName().isEmpty()) { // Is empty throw new IllegalArgumentException("wrapper.templateName is empty"); //NOI18N + } else if (wrapper.getTemplateVariables() == null) { + // No template variables set, should not happen + throw new NullPointerException("wrapper.templateVariables is null"); //NOI18N } try {