]> git.mxchange.org Git - addressbook-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:27:36 +0000 (00:27 +0200)
- checked for this.session as it is required, too

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

index 9b428d18b00e38f5b69dc3621ff7d47707cba38a..13f251eea9b6a25c3524ebae1eb8ab583a80ff8e 100644 (file)
@@ -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