jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt FormatNumberSupport.java
Date Wed, 03 Apr 2002 21:14:06 GMT
luehe       02/04/03 13:14:06

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        FormatNumberSupport.java
  Log:
  Fixed 7734: If an empty string is provided to the value attribute of the formatNumber action
(either EL or RT), an Exception occurs
  
  Revision  Changes    Path
  1.14      +5 -4      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/FormatNumberSupport.java
  
  Index: FormatNumberSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/FormatNumberSupport.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- FormatNumberSupport.java	9 Mar 2002 00:55:58 -0000	1.13
  +++ FormatNumberSupport.java	3 Apr 2002 21:14:06 -0000	1.14
  @@ -160,10 +160,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:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message