From: Roland Häder Date: Tue, 7 Nov 2017 22:03:11 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b0cf41ce96645666cc4b0195e9439dce654cc59;p=jcontacts-business-core.git Continued: - wrong check on employee's personal data instance, fixed Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java b/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java index e3e1e48..1724f83 100644 --- a/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java +++ b/src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java @@ -182,7 +182,7 @@ public class BusinessEmployee implements Employable { if (null == employeeCompany) { // Throw NPE throw new NullPointerException("employeeCompany is null"); //NOI18N - } else if (((null == employeeNumber) || (employeeNumber.isEmpty()) && (null == employeePersonalData))) { + } else if (((null == employeeNumber) || (employeeNumber.isEmpty())) && (null == employeePersonalData)) { // At least one must be given throw new NullPointerException("employeeNumber or employeePersonalData must be set."); //NOI18N }