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

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

index 639ea749ca24e9c6efcc5dd5a82caf9798961361..181a0c58a19c4efdb238e2b9340d77982ca19512 100644 (file)
@@ -529,6 +529,9 @@ public abstract class BaseJobsDatabaseBean 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