From a618a6df697fc8cd80d96cdaddd3257dc28ec6b5 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 --- .../jmailee/model/delivery/JobsEmailDeliveryMessageBean.java | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.39.5