From 90d5ee2e92d600a0e7831dde2587f04f7215eb9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 24 Jun 2017 00:32:53 +0200 Subject: [PATCH] Please cherry-pick: - 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jfinancials/database/BaseFinancialsDatabaseBean.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java b/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java index 58180e3..54fd899 100644 --- a/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java +++ b/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java @@ -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 -- 2.39.5