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 BundleSupport.java
Date Wed, 17 Apr 2002 18:35:34 GMT
luehe       02/04/17 11:35:34

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/fmt
                        BundleSupport.java
  Log:
  Fixed 8219: NPE occurs instead of TLV flagging the problem if <fmt:bundle> has no
body
  
  Revision  Changes    Path
  1.23      +6 -4      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/BundleSupport.java
  
  Index: BundleSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/BundleSupport.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- BundleSupport.java	16 Apr 2002 19:49:12 -0000	1.22
  +++ BundleSupport.java	17 Apr 2002 18:35:34 -0000	1.23
  @@ -133,10 +133,12 @@
       }
   
       public int doEndTag() throws JspException {
  -	try {
  -	    pageContext.getOut().print(getBodyContent().getString());
  -	} catch (IOException ioe) {
  -	    throw new JspTagException(ioe.getMessage());
  +	if (getBodyContent() != null) {
  +	    try {
  +		pageContext.getOut().print(getBodyContent().getString());
  +	    } catch (IOException ioe) {
  +		throw new JspTagException(ioe.getMessage());
  +	    }
   	}
   
   	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