- 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>
} 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