You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by lu...@apache.org on 2002/04/09 00:39:45 UTC

cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt FormatDateSupport.java

luehe       02/04/08 15:39:45

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        FormatDateSupport.java
  Log:
  Fixed 7801: <fmt:formatDate> will fail at runtime if value is an empty String
  
  Revision  Changes    Path
  1.16      +5 -4      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/FormatDateSupport.java
  
  Index: FormatDateSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/FormatDateSupport.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- FormatDateSupport.java	20 Mar 2002 20:59:49 -0000	1.15
  +++ FormatDateSupport.java	8 Apr 2002 22:39:44 -0000	1.16
  @@ -149,10 +149,11 @@
   		    && ((bcs = bc.getString()) != null)) {
   		value = bcs.trim();
   	    }
  -	    if ((value == null) || value.equals("")) {
  -		// do nothing
  -		return EVAL_PAGE;
  -	    }
  +	}
  +
  +	if ((value == null) || value.equals("")) {
  +	    // do nothing
  +	    return EVAL_PAGE;
   	}
   
   	/*
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>