From: Roland Häder Date: Thu, 12 May 2016 13:06:47 +0000 (+0200) Subject: garr, again localContact was returned empty because of confusion ... :-( Please cherr... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c134521c3f276ddce110a9ea71663e86208ddb2;p=pizzaservice-war.git garr, again localContact was returned empty because of confusion ... :-( Please cherry-pick this. Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java index bdd8e1fd..8db16164 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java @@ -16,6 +16,7 @@ */ package org.mxchange.pizzaapplication.beans.contact; +import de.chotime.landingpage.beans.login.LandingUserLoginWebSessionController; import java.text.MessageFormat; import java.util.Collections; import java.util.Date; @@ -410,7 +411,7 @@ public class PizzaContactWebSessionBean implements PizzaContactWebSessionControl @Override public List allContacts () { // Debug message - /* NOISY-DEBUG: */ System.out.println(MessageFormat.format("ContactController.allContacts: contactList.size()={0} - EXIT!", this.contactList.size())); + //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("ContactController.allContacts: contactList.size()={0} - EXIT!", this.contactList.size())); // Return un-modified list return Collections.unmodifiableList(this.contactList); @@ -448,6 +449,7 @@ public class PizzaContactWebSessionBean implements PizzaContactWebSessionControl // 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