elena       2002/11/08 13:28:14

  Modified:    java/src/org/apache/xerces/dom ElementImpl.java
  Log:
  We need to check if attribute map not null (default) before attempting to reconcile 
the default attributes.
  
  Revision  Changes    Path
  1.53      +6 -4      xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java
  
  Index: ElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- ElementImpl.java  2 Nov 2002 01:02:23 -0000       1.52
  +++ ElementImpl.java  8 Nov 2002 21:28:14 -0000       1.53
  @@ -132,7 +132,7 @@
           if (needsSyncData()) {
               synchronizeData();
           }
  -     this.name = name;
  +         this.name = name;
           reconcileDefaultAttributes();
       }
   
  @@ -966,8 +966,10 @@
   
       /** Reconcile default attributes. */
       protected void reconcileDefaultAttributes() {
  -        NamedNodeMapImpl defaults = getDefaultAttributes();
  -     attributes.reconcileDefaults(defaults);
  +        if (attributes != null) {
  +            NamedNodeMapImpl defaults = getDefaultAttributes();
  +            attributes.reconcileDefaults(defaults);
  +        }
       }
   
       /** Get the default attributes. */
  
  
  

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

Reply via email to