]> git.mxchange.org Git - addressbook-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 21 Dec 2018 18:56:25 +0000 (19:56 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 1 Feb 2020 03:31:40 +0000 (04:31 +0100)
- 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>
src/java/org/mxchange/jcontactsbusiness/model/basicdata/AddressbookAdminBusinessDataSessionBean.java

index b682509764e33becb5f549214877a8516fb4b5a6..5570b478266e7c72e2ac43b547949659c178f7e6 100644 (file)
@@ -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