You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2004/10/12 15:52:13 UTC

cvs commit: ws-axis/java/src/org/apache/axis/message MessageElement.java

tomj        2004/10/12 06:52:13

  Modified:    java/src/org/apache/axis/message MessageElement.java
  Log:
  Add some defensive code to copyNode().  The XML parser classes don't
  like a null namespace for an attribute.
  
  Revision  Changes    Path
  1.183     +2 -2      ws-axis/java/src/org/apache/axis/message/MessageElement.java
  
  Index: MessageElement.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/MessageElement.java,v
  retrieving revision 1.182
  retrieving revision 1.183
  diff -u -r1.182 -r1.183
  --- MessageElement.java	14 Sep 2004 14:52:38 -0000	1.182
  +++ MessageElement.java	12 Oct 2004 13:52:13 -0000	1.183
  @@ -2021,12 +2021,12 @@
               }
               if(att.getLocalName() != null) {
                   dest.addAttribute(att.getPrefix(),
  -                        att.getNamespaceURI(),
  +                        (att.getNamespaceURI() != null ? att.getNamespaceURI() : ""),
                           att.getLocalName(),
                           att.getNodeValue());
               } else if (att.getNodeName() != null) {
                   dest.addAttribute(att.getPrefix(),
  -                        att.getNamespaceURI(),
  +                        (att.getNamespaceURI() != null ? att.getNamespaceURI() : ""),
                           att.getNodeName(),
                           att.getNodeValue());
               }