From 6b0cf41ce96645666cc4b0195e9439dce654cc59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 7 Nov 2017 23:03:11 +0100 Subject: [PATCH] Continued: - wrong check on employee's personal data instance, fixed MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jcontactsbusiness/model/employee/BusinessEmployee.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5