From ee8bf76b148a2b6e200f19f90a6925855f90023e 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 --- .../basicdata/FinancialsAdminBasicDataWebRequestBean.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); -- 2.39.5