]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 7 Nov 2017 22:03:11 +0000 (23:03 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 7 Nov 2017 22:03:11 +0000 (23:03 +0100)
- wrong check on employee's personal data instance, fixed

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/employee/BusinessEmployee.java

index e3e1e48168d17d90ff98c665dfcba74ab5127004..1724f83212ea80c78628331778972e82fea5621a 100644 (file)
@@ -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
                }