]> git.mxchange.org Git - jfinancials-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:37 +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/jfinancials/database/BaseFinancialsDatabaseBean.java

index 58180e395b6e627a6392b2cbb6963dc9a82b5da4..54fd89996cb62b1111b8e1314b504477c38827cb 100644 (file)
@@ -508,6 +508,9 @@ public abstract class BaseFinancialsDatabaseBean 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