jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core ImportSupport.java
Date Sat, 30 Mar 2002 19:50:48 GMT
shawn       02/03/30 11:50:48

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/core
                        ImportSupport.java
  Log:
  Addressed bug #7299.
  
  Revision  Changes    Path
  1.13      +9 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core/ImportSupport.java
  
  Index: ImportSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core/ImportSupport.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ImportSupport.java	14 Mar 2002 04:18:57 -0000	1.12
  +++ ImportSupport.java	30 Mar 2002 19:50:48 -0000	1.13
  @@ -463,7 +463,11 @@
        * Returns <tt>true</tt> if our current URL is absolute,
        * <tt>false</tt> otherwise.
        */
  -    private boolean isAbsoluteUrl() {
  +    private boolean isAbsoluteUrl() throws JspTagException {
  +	// ensure we have something
  +	if (url == null)
  +	    throw new NullAttributeException("import", "url");
  +
           return isAbsoluteUrl(url);
       }
   
  @@ -476,6 +480,10 @@
        * <tt>false</tt> otherwise.
        */
       public static boolean isAbsoluteUrl(String url) {
  +	// a null URL is not absolute, by our definition
  +	if (url == null)
  +	    return false;
  +
   	// do a fast, simple check first
   	int colonPos;
   	if ((colonPos = url.indexOf(":")) == -1)
  
  
  

--
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