From 1023423560ff82c0b85c5d08c74eaf0aa27731fd Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
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 <roland@mxchange.org>
---
 src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java b/src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
index 3789adb..4bb4462 100644
--- a/src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
+++ b/src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java
@@ -501,7 +501,12 @@ public abstract class BaseJobsDatabaseBean 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