]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 21 Dec 2018 14:28:01 +0000 (15:28 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 22 Jul 2019 00:25:19 +0000 (02:25 +0200)
- companyName might be set, let's make sure it is not empty
- basicData can be final here

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/business/basicdata/JobsAdminBasicDataWebRequestBean.java

index ada46064c7db9403c8992344aa2000d0a2576e3d..310243f61ebb17740f08d2482ad6f3eb69afb582 100644 (file)
@@ -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());