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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user