]> git.mxchange.org Git - jfinancials-core.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:17:30 +0000 (00:17 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 23 Jun 2017 22:17:30 +0000 (00:17 +0200)
- put() does not accept NULL values (throws NPE)

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/database/BaseFinancialsDatabaseBean.java

index ecbbe886d1ddcaa145701cef990c337415e505b3..58180e395b6e627a6392b2cbb6963dc9a82b5da4 100644 (file)
@@ -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