]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
Don't cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:17:58 +0000 (00:17 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:17:58 +0000 (00:17 +0200)
- need to provide email queues for these EJBs as they will attempt to call
  sendEmail() which would then throw a NPE:

----------------------------
Caused by: java.lang.NullPointerException
        at org.mxchange.jfinancials.database.BaseFinancialsDatabaseBean.sendEmail(BaseFinancialsDatabaseBean.java:555)
        at org.mxchange.jusercore.model.user.register.FinancialsUserRegistrationSessionBean.registerUser(FinancialsUserRegistrationSessionBean.java:208)
----------------------------

However, I will expand sendEmail() a bit to verify that the field session is
really there and not run in such ugly NPE.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jfinancials/mailer/model/delivery/FinancialsEmailDeliveryMessageBean.java
src/java/org/mxchange/jusercore/model/user/FinancialsAdminUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/FinancialsUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/email_address/FinancialsUserEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/register/FinancialsUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/resendlink/FinancialsResendLinkSessionBean.java

index 51f5ba38a20938db29a334727340d8a5d0d8b9ba..12913dbf81c8f50db49b13f160be0e9718ac8751 100644 (file)
@@ -65,7 +65,7 @@ public class FinancialsEmailDeliveryMessageBean extends BaseFinancialsDatabaseBe
         */
        public FinancialsEmailDeliveryMessageBean () {
                // Call super constructor
-               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
+               super();
 
                // Init mailer instance
                this.mailer = new FinancialsMailer();
index 5ec021ea1367d1d966f51f814aa343c69eb5bfe9..48d5157e88f81e9493fc72aaee8177c544383b6a 100644 (file)
@@ -65,7 +65,7 @@ public class FinancialsAdminUserSessionBean extends BaseFinancialsDatabaseBean i
         */
        public FinancialsAdminUserSessionBean () {
                // Call super constructor
-               super();
+               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
        }
 
        @Override
index 2e3d3c40a020bf61297e353c349423dcf1678781..a90fd6c29cbe8f9c200e1f67aa5396273bd4c6a5 100644 (file)
@@ -71,7 +71,7 @@ public class FinancialsUserSessionBean extends BaseFinancialsDatabaseBean implem
         */
        public FinancialsUserSessionBean () {
                // Call super constructor
-               super();
+               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
        }
 
        @Override
index 9f98d1a83d78559d5869793f43b58163d1161124..3fc67d447de667285a34b591480c52aaa3140b52 100644 (file)
@@ -57,7 +57,7 @@ public class FinancialsUserEmailChangeSessionBean extends BaseFinancialsDatabase
         */
        public FinancialsUserEmailChangeSessionBean () {
                // Call super constructor
-               super();
+               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
        }
 
        @Override
index aa20d2ff06d7580625708c38e629df3c93b7521b..7a52540ed80c2728faf6c89d227ad5aa50870a3e 100644 (file)
@@ -66,7 +66,7 @@ public class FinancialsUserRegistrationSessionBean extends BaseFinancialsDatabas
         */
        public FinancialsUserRegistrationSessionBean () {
                // Call super constructor
-               super();
+               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
        }
 
        @Override
index 187abcd0e372dc505b0e45c6eaac5d285c75cb09..fa9a07d565e6e21bc13e71fcd7af7ededa90b0b4 100644 (file)
@@ -63,7 +63,7 @@ public class FinancialsResendLinkSessionBean extends BaseFinancialsDatabaseBean
         */
        public FinancialsResendLinkSessionBean () {
                // Call super constructor
-               super();
+               super("jms/jfinancials-queue-factory", "jms/jfinancials-email-queue"); //NOI18N
        }
 
        @Override