]> git.mxchange.org Git - addressbook-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:32:53 +0000 (00:32 +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/addressbook/database/BaseAddressbookDatabaseBean.java

index 1664575ee780f4d1584370bc8df05129d58eff71..720daa9d8b38a258ea86266ff79ea694388b300f 100644 (file)
@@ -491,6 +491,9 @@ public abstract class BaseAddressbookDatabaseBean 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