From: Roland Häder Date: Fri, 21 Dec 2018 14:28:01 +0000 (+0100) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6657743356fdd8ae8e115c8ac64112eceef8053e;p=jjobs-war.git Please cherry-pick: - companyName might be set, let's make sure it is not empty - basicData can be final here Signed-off-by: Roland Häder --- 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());