]> git.mxchange.org Git - pizzaservice-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:18:27 +0000 (00:18 +0200)
- put() does not accept NULL values (throws NPE)

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

index b92a402e5d4d57ba3fafed56cc2b8e01485a6d3a..359223c7bd3be9163f63453c06f189ce98a0c90f 100644 (file)
@@ -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