axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
Date Sun, 02 Mar 2003 19:07:36 GMT
dims        2003/03/02 11:07:36

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
  Log:
  Fix for Bug 17169 - NullPointerException when processing WSDL with attachments from MS SOAP
Toolkit
  
  Revision  Changes    Path
  1.73      +7 -5      xml-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
  
  Index: SymbolTable.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- SymbolTable.java	25 Jan 2003 19:35:33 -0000	1.72
  +++ SymbolTable.java	2 Mar 2003 19:07:36 -0000	1.73
  @@ -1947,11 +1947,13 @@
                                }
                            }
                        }
  -                     org.w3c.dom.Element e = (org.w3c.dom.Element)XMLUtils.findNode(element,
new QName(Constants.URI_DIME_CONTENT, "mediaType"));
  -                     if(e != null){
  -                         String value = e.getAttribute("value");
  -                         bEntry.setOperationDIME(operation.getName());
  -                         bEntry.setMIMEInfo(operation.getName(), part.getName(), value,
dims);
  +                     if(element != null) {
  +                         org.w3c.dom.Element e = (org.w3c.dom.Element)XMLUtils.findNode(element,
new QName(Constants.URI_DIME_CONTENT, "mediaType"));
  +                         if(e != null){
  +                             String value = e.getAttribute("value");
  +                             bEntry.setOperationDIME(operation.getName());
  +                             bEntry.setMIMEInfo(operation.getName(), part.getName(), value,
dims);
  +                         }
                        }
                    }
                }
  
  
  

Mime
View raw message