]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Tue, 30 Aug 2016 10:32:32 +0000 (12:32 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 31 Aug 2016 19:52:01 +0000 (21:52 +0200)
- test on template variables add, can be none set, but should not be null

src/java/org/mxchange/pizzaapplication/mailer/model/delivery/PizzaEmailDeliveryMessageBean.java

index bbd231d1e4ca8e9e4194476bec0c1aefc2b91179..b971bf925f98c5fe0be342e3c27b166b2f04dfc2 100644 (file)
@@ -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 {