- checked for this.session as it is required, too
Signed-off-by: Roland Häder <roland@mxchange.org>
} else if (user.getUserLocale() == null) {
// Throw NPE again
throw new NullPointerException("user.userLocale is null"); //NOI18N
} else if (user.getUserLocale() == null) {
// Throw NPE again
throw new NullPointerException("user.userLocale is null"); //NOI18N
+ } else if (this.getSession() == null) {
+ // Throw NPE
+ throw new NullPointerException("this.session is not set. Have you forgotten to call super(String, String) and called only super() ?"); //NOI18N
}
// Prepare mail wrapper
}
// Prepare mail wrapper