Permalink
Browse files

[#1643] Do not output null flash parameters

StringBuilder will output nulls as "null", which is always not what you want.
  • Loading branch information...
1 parent 06889f4 commit 40984bf0e39e467733afd2e9362270f49f869810 @angryziber angryziber committed with Notalifeform Jan 16, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 framework/src/play/mvc/Scope.java
@@ -75,6 +75,7 @@ void save() {
try {
StringBuilder flash = new StringBuilder();
for (String key : out.keySet()) {
+ if (out.get(key) == null) continue;
flash.append("\u0000");
flash.append(key);
flash.append(":");

0 comments on commit 40984bf

Please sign in to comment.