From 34f89c13e441ffa66356cb6334b21783d024e75c Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 28 Aug 2003 20:13:41 +0000 Subject: [PATCH] If you are getting a text param input box it is never going to be null, it is just going to be the empty string, pretty sure we always want to check against blank and not null. If anything is sideeffected using that we will have to fix it, but seems unlikely. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1212 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/servlet/util/ParameterUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/servlet/util/ParameterUtil.java b/projects/samskivert/src/java/com/samskivert/servlet/util/ParameterUtil.java index 6d916e57..23a8640c 100644 --- a/projects/samskivert/src/java/com/samskivert/servlet/util/ParameterUtil.java +++ b/projects/samskivert/src/java/com/samskivert/servlet/util/ParameterUtil.java @@ -1,5 +1,5 @@ // -// $Id: ParameterUtil.java,v 1.8 2003/08/19 23:39:25 ray Exp $ +// $Id: ParameterUtil.java,v 1.9 2003/08/28 20:13:41 eric Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -53,7 +53,7 @@ public class ParameterUtil HttpServletRequest req, String name, boolean returnNull) { String value = req.getParameter(name); - if (value == null) { + if (StringUtil.blank(value)) { return returnNull ? null : ""; } else {