From: Roland Häder Date: Thu, 12 May 2016 14:44:26 +0000 (+0200) Subject: opps, forgot to clear this data (cherry-pick this) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3198c0155fdbe51cfbc1df0e5995f79b3e33b9a3;p=jfinancials-war.git opps, forgot to clear this data (cherry-pick this) Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java index ecf7bb51..394d876e 100644 --- a/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java @@ -428,7 +428,6 @@ public class AddressbookContactWebSessionBean implements AddressbookContactWebSe // Debug message //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("{0}.createContactInstance: this.emailAddress={1}", this.getClass().getSimpleName(), this.getEmailAddress())); - // Don't set null or wrong references if ((phone instanceof DialableLandLineNumber) && (phone.getPhoneCountry() instanceof Country) && (this.getPhoneAreaCode() != null) && (this.getPhoneNumber() != null) && (this.getPhoneAreaCode() > 0) && (this.getPhoneNumber() > 0)) { // Now the number must be given @@ -488,7 +487,6 @@ public class AddressbookContactWebSessionBean implements AddressbookContactWebSe // Trace message //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("{0}.createContactInstance: contact={1} - EXIT!", this.getClass().getSimpleName(), contact)); - // Return it return localContact; } @@ -894,8 +892,13 @@ public class AddressbookContactWebSessionBean implements AddressbookContactWebSe this.setEmailAddress(null); this.setEmailAddressRepeat(null); this.setPhoneAreaCode(null); + this.setPhoneCountry(null); + this.setPhoneNumber(null); this.setCellphoneCarrier(null); + this.setCellphoneNumber(null); this.setFaxAreaCode(null); + this.setFaxCountry(null); + this.setFaxNumber(null); // - other data this.setBirthday(null);