From 0d3c7405cc1cb8f5fcaaa54790adc6d7e5f823e6 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 --- .../pizzaaplication/database/BasePizzaDatabaseBean.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java b/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java index b92a402..359223c 100644 --- a/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java +++ b/src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java @@ -501,7 +501,12 @@ public abstract class BasePizzaDatabaseBean 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