From 6c4480c7629d3facfc96345c5aed5792dfc64f0c Mon Sep 17 00:00:00 2001 From: mdb Date: Fri, 11 Feb 2005 23:26:24 +0000 Subject: [PATCH] Don't put "null" into the text area. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1589 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/velocity/FormTool.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java index b931ce44..f3dcc868 100644 --- a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java +++ b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java @@ -345,7 +345,9 @@ public class FormTool buf.append(" ").append(extra); } buf.append(">"); - buf.append(value); + if (value != null) { + buf.append(value); + } buf.append(""); return buf.toString(); }