You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/06/19 23:38:24 UTC

cvs commit: xml-crimson/src/org/apache/crimson/tree AttributeSet.java

edwingo     01/06/19 14:38:24

  Modified:    src/org/apache/crimson/tree AttributeSet.java
  Log:
  Fix for NPE submitted by contributer
  
  Revision  Changes    Path
  1.14      +3 -3      xml-crimson/src/org/apache/crimson/tree/AttributeSet.java
  
  Index: AttributeSet.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/AttributeSet.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AttributeSet.java	2001/03/20 20:17:04	1.13
  +++ AttributeSet.java	2001/06/19 21:38:22	1.14
  @@ -1,5 +1,5 @@
   /*
  - * $Id: AttributeSet.java,v 1.13 2001/03/20 20:17:04 edwingo Exp $
  + * $Id: AttributeSet.java,v 1.14 2001/06/19 21:38:22 edwingo Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -80,7 +80,7 @@
    * document or was instead defaulted by attribute processing.
    *
    * @author David Brownell
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    */
   final
   class AttributeSet implements NamedNodeMap, XmlWritable
  @@ -180,7 +180,7 @@
                   uri = source.getURI(i);
                   // Translate "" of SAX2 to null.  See DOM2 spec under Node
                   // namespaceURI
  -                if (uri.equals("")) {
  +                if ("".equals(uri)) {
                       uri = null;
                   }
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: crimson-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: crimson-cvs-help@xml.apache.org