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=64924726020d386037f0fcfa78fedf8ac0bdac77;p=pizzaservice-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/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java b/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java index bbd231d..b971bf9 100644 --- a/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java @@ -180,6 +180,9 @@ public class PizzaEmailDeliveryMessageBean extends BasePizzaDatabaseBean impleme } 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 {