From: Roland Häder Date: Mon, 26 Jun 2017 22:21:47 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba1d13c75e381a3719ae91be89f4658a8ebe7f4e;p=addressbook-mailer-ejb.git Please cherry-pick: - checked for this.session as it is required, too Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java b/src/java/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java index 9b428d1..13f251e 100644 --- a/src/java/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java +++ b/src/java/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java @@ -529,6 +529,9 @@ public abstract class BaseAddressbookDatabaseBean extends BaseDatabaseBean { } 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