]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:21:47 +0000 (00:21 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:21:47 +0000 (00:21 +0200)
- checked for this.session as it is required, too

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java

index 67bf9f02eceaf347662c30626682d20b25eff792..0140d61b8867ade5372b2839a8f516233059944c 100644 (file)
@@ -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