]> git.mxchange.org Git - jjobs-core.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:32:53 +0000 (00:32 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:34:34 +0000 (00:34 +0200)
- the user's locale must be set at all times, else the delivering method
  (onMessage()) will fail with an NPE because the locale is really required
  there to choose localized templates.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java

index 4bb446275990f4a61d9c0c15218bd79ae2d52632..365d7268dfe620d9e0f0d85c0bd66c897e5d10bf 100644 (file)
@@ -491,6 +491,9 @@ public abstract class BaseJobsDatabaseBean extends BaseDatabaseBean {
                } else if (user.getUserContact().getContactPersonalTitle() == null) {
                        // Throw NPE again
                        throw new NullPointerException("user.userContact.contactPersonalTitle is null"); //NOI18N
+               } else if (user.getUserLocale() == null) {
+                       // Throw NPE again
+                       throw new NullPointerException("user.userLocale is null"); //NOI18N
                }
 
                // Prepare mail wrapper