- put() does not accept NULL values (throws NPE)
Signed-off-by: Roland Häder <roland@mxchange.org>
// 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