]> git.mxchange.org Git - addressbook-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:27:25 +0000 (00:27 +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/addressbook/mailer/model/delivery/AddressbookEmailDeliveryMessageBean.java
src/java/org/mxchange/jusercore/model/user/AddressbookAdminUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/AddressbookUserSessionBean.java
src/java/org/mxchange/jusercore/model/user/email_address/AddressbookUserEmailChangeSessionBean.java
src/java/org/mxchange/jusercore/model/user/register/AddressbookUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/resendlink/AddressbookResendLinkSessionBean.java

index 97c3dc14dbc7d12e97d8e29eba8c476d07a81074..daa9f24d3c9de1175f6267e61d1a44bf13ddcca2 100644 (file)
@@ -65,7 +65,7 @@ public class AddressbookEmailDeliveryMessageBean extends BaseAddressbookDatabase
         */
        public AddressbookEmailDeliveryMessageBean () {
                // Call super constructor
-               super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
+               super();
 
                // Init mailer instance
                this.mailer = new AddressbookMailer();
index fa2ca788f70df9b3efb9d93618157fc815872afc..f8e1c9536cd6fec233c4f947a99c4177eb808692 100644 (file)
@@ -65,7 +65,7 @@ public class AddressbookAdminUserSessionBean extends BaseAddressbookDatabaseBean
         */
        public AddressbookAdminUserSessionBean () {
                // Call super constructor
-               super();
+               super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
        }
 
        @Override
index 6398fad8eca6703bb11e5a2e09ff5f3282b2be29..c8db69dd18797bcb21307084c3196cc44ac5df61 100644 (file)
@@ -71,7 +71,7 @@ public class AddressbookUserSessionBean extends BaseAddressbookDatabaseBean impl
         */
        public AddressbookUserSessionBean () {
                // Call super constructor
-               super();
+               super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
        }
 
        @Override
index 8d7be2d6e3ec694bb61e1bbaab3e57edee46789d..a3c5a4624eeab9d891aeab732ecaad356cd303ac 100644 (file)
@@ -57,7 +57,7 @@ public class AddressbookUserEmailChangeSessionBean extends BaseAddressbookDataba
         */
        public AddressbookUserEmailChangeSessionBean () {
                // Call super constructor
-               super();
+               super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
        }
 
        @Override
index db8585f68e27a7b7708a601c342163246f34b49f..72315aea51358a8d2b6d9e395f74504c03902170 100644 (file)
@@ -66,7 +66,7 @@ public class AddressbookUserRegistrationSessionBean extends BaseAddressbookDatab
         */
        public AddressbookUserRegistrationSessionBean () {
                // Call super constructor
-               super();
+               super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
        }
 
        @Override
index 242fad7e15057ba60c9ad34ad53e8e7e4fb17c4d..1f3dfaeb9ca99cbdab6ef78f14bceab55e2b4088 100644 (file)
@@ -64,7 +64,7 @@ public class AddressbookResendLinkSessionBean extends BaseAddressbookDatabaseBea
         */
        public AddressbookResendLinkSessionBean () {
                // Call super constructor
-               super();
+               super("jms/addressbook-queue-factory", "jms/addressbook-email-queue"); //NOI18N
        }
 
        @Override