From 64924726020d386037f0fcfa78fedf8ac0bdac77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 30 Aug 2016 12:32:32 +0200 Subject: [PATCH] Please cherry-pick: - test on template variables add, can be none set, but should not be null --- .../mailer/model/delivery/PizzaEmailDeliveryMessageBean.java | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.39.5