]> git.mxchange.org Git - pizzaservice-mailer-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 29 Aug 2016 10:22:00 +0000 (12:22 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2017 20:28:13 +0000 (22:28 +0200)
- implemented business method for deleting user accounts

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jusercore/model/user/AddressbookAdminUserSessionBean.java

index 209d1a7259a67b21d59001baf424111758893802..1466e8af47f72239bb85f84218b7c1dd1254d68e 100644 (file)
@@ -187,7 +187,7 @@ public class AddressbookAdminUserSessionBean extends BaseAddressbookDatabaseBean
                Contact managedContact = this.getEntityManager().find(user.getUserContact().getClass(), user.getUserContact().getContactId());
 
                // Should be found!
-               assert (managedContact instanceof Contact) : MessageFormat.format("Contact with id {0} not found, but should be.", managedContact.getContactId()); //NOI18N
+               assert (managedContact instanceof Contact) : MessageFormat.format("Contact with id {0} not found, but should be.", user.getUserContact().getContactId()); //NOI18N
 
                // Set detached object in rexcruiter instance
                user.setUserContact(managedContact);