From: Roland Häder <roland@mxchange.org>
Date: Fri, 21 Dec 2018 18:56:25 +0000 (+0100)
Subject: Please cherry-pick:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd26639d6fccbc91d52cc388a0c408da63fbbb9d;p=addressbook-ejb.git

Please cherry-pick:
- parameter of this exception has changed, needs to be direct company (short)
  name now, not full BasicData instance

Signed-off-by: Roland Häder <roland@mxchange.org>
---

diff --git a/src/java/org/mxchange/jcontactsbusiness/model/basicdata/AddressbookAdminBusinessDataSessionBean.java b/src/java/org/mxchange/jcontactsbusiness/model/basicdata/AddressbookAdminBusinessDataSessionBean.java
index b682509..5570b47 100644
--- a/src/java/org/mxchange/jcontactsbusiness/model/basicdata/AddressbookAdminBusinessDataSessionBean.java
+++ b/src/java/org/mxchange/jcontactsbusiness/model/basicdata/AddressbookAdminBusinessDataSessionBean.java
@@ -75,13 +75,13 @@ public class AddressbookAdminBusinessDataSessionBean extends BaseAddressbookData
 			throw new IllegalArgumentException("basicData.companyShortName is empty"); //NOI18N
 		} else if (this.isSameCompanyShortNameAdded(basicData)) {
 			// Throw exception
-			throw new BasicDataAlreadyAddedException(basicData);
+			throw new BasicDataAlreadyAddedException(basicData.getCompanyShortName());
 		} else if ((basicData.getCompanyName() != null) && (basicData.getCompanyName().isEmpty())) {
 			// Should not be empty string when set
 			throw new IllegalArgumentException("basicData.companyName is empty"); //NOI18N
 		} else if ((basicData.getCompanyName() != null) && (this.isSameCompanyNameAdded(basicData))) {
 			// Throw exception
-			throw new BasicDataAlreadyAddedException(basicData);
+			throw new BasicDataAlreadyAddedException(basicData.getCompanyName());
 		}
 
 		// Now add current date