]> git.mxchange.org Git - addressbook-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 11 Nov 2022 16:43:31 +0000 (17:43 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 11 Nov 2022 16:44:42 +0000 (17:44 +0100)
- the above if() block is already stopping wrong invocations of this method

src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebRequestBean.java

index eec159650cb7753dffb4c6eacf3063855e240546..09940afd0341433e5b33707314868191d5595cd0 100644 (file)
@@ -484,14 +484,6 @@ public class AddressbookContactWebRequestBean extends BaseAddressbookBean implem
                        throw new FaceletException(new IllegalArgumentException("Not all personal data is set, but createContactInstance() is called.")); //NOI18N
                }
 
-               // Required personal data must be set
-               assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N
-
-               // Generate phone number
-               DialableLandLineNumber phone = new LandLineNumber(this.getLandLineCountry(), this.getLandLineAreaCode(), this.getLandLineNumber());
-               DialableMobileNumber mobile = new MobileNumber(this.getMobileProvider(), this.getMobileNumber());
-               DialableFaxNumber fax = new FaxNumber(this.getFaxCountry(), this.getFaxAreaCode(), this.getFaxNumber());
-
                // Create new contact
                final Contact contact = new UserContact(
                                          this.getPersonalTitle(),