santiagopg    02/04/16 10:29:28

  Modified:    java/src/org/apache/xalan/xsltc/dom Tag:
                        jaxp-ri-1_2_0-fcs-branch DOMImpl.java
  Log:
  Check for localName == null.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.66.4.3  +13 -3     
xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java
  
  Index: DOMImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java,v
  retrieving revision 1.66.4.2
  retrieving revision 1.66.4.3
  diff -u -r1.66.4.2 -r1.66.4.3
  --- DOMImpl.java      15 Apr 2002 19:51:22 -0000      1.66.4.2
  +++ DOMImpl.java      16 Apr 2002 17:29:27 -0000      1.66.4.3
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DOMImpl.java,v 1.66.4.2 2002/04/15 19:51:22 santiagopg Exp $
  + * @(#)$Id: DOMImpl.java,v 1.66.4.3 2002/04/16 17:29:27 santiagopg Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -3299,7 +3299,7 @@
        {
            final int node = nextAttributeNode();
            final String qname = attList.getQName(i);
  -         String localname = attList.getLocalName(i);
  +         String localName = attList.getLocalName(i);
            final String value = attList.getValue(i);
            StringBuffer namebuf = new StringBuffer(EMPTYSTRING);
            
  @@ -3307,6 +3307,11 @@
                xmlSpaceDefine(attList.getValue(i), parent);
            }
   
  +         // If local name is null set it to the empty string
  +         if (localName == null) {
  +             localName = EMPTYSTRING;
  +         }
  +
            // Create the internal attribute node name ([EMAIL PROTECTED])
            final String uri = attList.getURI(i);
            if (uri != null && !uri.equals(EMPTYSTRING)) {
  @@ -3314,7 +3319,7 @@
                namebuf.append(':');
            }
            namebuf.append('@');
  -         namebuf.append(localname.length() > 0 ? localname : qname);
  +         namebuf.append(localName.length() > 0 ? localName : qname);
   
            String name = namebuf.toString();
   
  @@ -3466,6 +3471,11 @@
                        _nextSibling2[last] = _currentAttributeNode;
                    }
                }
  +         }
  +
  +         // If local name is null set it to the empty string
  +         if (localName == null) {
  +             localName = EMPTYSTRING;
            }
   
            // Append any attribute nodes
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to