]> git.mxchange.org Git - jjobs-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:56:03 +0000 (21:56 +0200)
- test on template variables add, can be none set, but should not be null

src/java/org/mxchange/jmailee/model/delivery/JobsEmailDeliveryMessageBean.java

index 46b35a0e794e4a130b80522121734945ba4fbed4..5d7f97bbe63fa271e6690e282b0d297a658eecfc 100644 (file)
@@ -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 {