From 6eebbf92d3160ebd4210ba10e23b8be302036530 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 27 Jun 2017 00:21:47 +0200 Subject: [PATCH] Please cherry-pick: - checked for this.session as it is required, too 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/java/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java b/src/java/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java index 67bf9f0..0140d61 100644 --- a/src/java/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java +++ b/src/java/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java @@ -525,6 +525,9 @@ public abstract class BaseFinancialsDatabaseBean 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 -- 2.39.5