From 8e55d1c6914b0b66b25be42d61824663db898e17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Dec 2018 19:56:25 +0100 Subject: [PATCH] Please cherry-pick: - parameter of this exception has changed, needs to be direct company (short) name now, not full BasicData instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../basicdata/FinancialsAdminBusinessDataSessionBean.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/jcontactsbusiness/model/basicdata/FinancialsAdminBusinessDataSessionBean.java b/src/java/org/mxchange/jcontactsbusiness/model/basicdata/FinancialsAdminBusinessDataSessionBean.java index 6e5ee1f..097d607 100644 --- a/src/java/org/mxchange/jcontactsbusiness/model/basicdata/FinancialsAdminBusinessDataSessionBean.java +++ b/src/java/org/mxchange/jcontactsbusiness/model/basicdata/FinancialsAdminBusinessDataSessionBean.java @@ -75,13 +75,13 @@ public class FinancialsAdminBusinessDataSessionBean extends BaseFinancialsDataba 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 -- 2.39.5