Heh, ok so there is a good reason to do this with the == null test. I'll

just do the blank check externall for the stuff I can about. Har!


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1214 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
eric
2003-09-03 17:08:21 +00:00
parent 5449ee395b
commit 92c4b6d108
@@ -1,5 +1,5 @@
// //
// $Id: ParameterUtil.java,v 1.9 2003/08/28 20:13:41 eric Exp $ // $Id: ParameterUtil.java,v 1.10 2003/09/03 17:08:21 eric Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -53,7 +53,7 @@ public class ParameterUtil
HttpServletRequest req, String name, boolean returnNull) HttpServletRequest req, String name, boolean returnNull)
{ {
String value = req.getParameter(name); String value = req.getParameter(name);
if (StringUtil.blank(value)) { if (value == null) {
return returnNull ? null : ""; return returnNull ? null : "";
} else { } else {