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

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

index a1241437529e08c696965a253ede759a6f0152dc..3f140addba32488d16e0b7145a334ccb19d60dbd 100644 (file)
@@ -529,6 +529,9 @@ public abstract class BasePizzaDatabaseBean 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