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=ee8bf76b148a2b6e200f19f90a6925855f90023e;p=jfinancials-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/jfinancials/beans/business/basicdata/FinancialsAdminBasicDataWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/business/basicdata/FinancialsAdminBasicDataWebRequestBean.java index 74813183..636c75ba 100644 --- a/src/java/org/mxchange/jfinancials/beans/business/basicdata/FinancialsAdminBasicDataWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/business/basicdata/FinancialsAdminBasicDataWebRequestBean.java @@ -166,10 +166,13 @@ public class FinancialsAdminBasicDataWebRequestBean extends BaseFinancialsBean i } 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());