From cba57e7857931988fdf8f5c789e2b52498da0dfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 24 Jun 2017 00:17:30 +0200 Subject: [PATCH] Please cherry-pick: - put() does not accept NULL values (throws NPE) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../addressbook/database/BaseAddressbookDatabaseBean.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java b/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java index 57b8abc..1664575 100644 --- a/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java +++ b/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java @@ -501,7 +501,12 @@ public abstract class BaseAddressbookDatabaseBean 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 -- 2.39.5