From: Roland Häder Date: Fri, 23 Jun 2017 22:17:30 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f95c79cb0167871a0e813f8a066f3d3f0b74012d;p=jbonuscard-core.git Please cherry-pick: - put() does not accept NULL values (throws NPE) Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java b/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java index ecbbe88..58180e3 100644 --- a/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java +++ b/src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java @@ -518,7 +518,12 @@ public abstract class BaseFinancialsDatabaseBean extends BaseDatabaseBean { // Set base URL and random password variables.put("baseUrl", baseUrl); //NOI18N - variables.put("randomPassword", randomPassword); //NOI18N + variables.put("randomPassword", ""); //NOI18N + + // Is the random password set? + if ((randomPassword instanceof String) && (!randomPassword.isEmpty())) { + variables.put("randomPassword", randomPassword); //NOI18N + } // Set all // @TODO Language from message bundle