From 6657743356fdd8ae8e115c8ac64112eceef8053e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Dec 2018 15:28:01 +0100 Subject: [PATCH] Please cherry-pick: - companyName might be set, let's make sure it is not empty - basicData can be final here MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../business/basicdata/JobsAdminBasicDataWebRequestBean.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/jjobs/beans/business/basicdata/JobsAdminBasicDataWebRequestBean.java b/src/java/org/mxchange/jjobs/beans/business/basicdata/JobsAdminBasicDataWebRequestBean.java index ada46064..310243f6 100644 --- a/src/java/org/mxchange/jjobs/beans/business/basicdata/JobsAdminBasicDataWebRequestBean.java +++ b/src/java/org/mxchange/jjobs/beans/business/basicdata/JobsAdminBasicDataWebRequestBean.java @@ -166,10 +166,13 @@ public class JobsAdminBasicDataWebRequestBean extends BaseJobsBean implements Jo } else if (this.getCompanyShortName().isEmpty()) { // Is null throw new IllegalArgumentException("this.companyShortName is empty"); //NOI18N + } else if ((this.getCompanyName() != null) && (this.getCompanyName().isEmpty())) { + // Is null + throw new IllegalArgumentException("this.companyName is set empty"); //NOI18N } // Prepare entity - BasicData basicData = new BusinessBasicData(this.getCompanyShortName()); + final BasicData basicData = new BusinessBasicData(this.getCompanyShortName()); // Set all opther remaining data basicData.setCompanyComments(this.getCompanyComments()); -- 2.39.5