]> git.mxchange.org Git - pizzaservice-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:33 +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/pizzaaplication/database/BasePizzaDatabaseBean.java

index 359223c7bd3be9163f63453c06f189ce98a0c90f..232eff744739db63adb989cc645d3f1ae1fc6db8 100644 (file)
@@ -491,6 +491,9 @@ public abstract class BasePizzaDatabaseBean 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