antelder    2002/12/17 06:15:57

  Modified:    java/src/org/apache/wsif/providers/soap/apacheaxis
                        WSIFOperation_ApacheAxis.java
  Log:
  Fix NPE when trying to unwrap a part thats a type not an element
  
  Revision  Changes    Path
  1.49      +2 -2      
xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java
  
  Index: WSIFOperation_ApacheAxis.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- WSIFOperation_ApacheAxis.java     16 Dec 2002 17:54:16 -0000      1.48
  +++ WSIFOperation_ApacheAxis.java     17 Dec 2002 14:15:57 -0000      1.49
  @@ -790,7 +790,7 @@
                        if (inputSOAPParts.size() == 1) {
                                Part p = (Part)inputSOAPParts.get(0);
                                QName elementName = p.getElementName();
  -                             if (operationName.equals(elementName.getLocalPart())) {
  +                             if (elementName != null && 
operationName.equals(elementName.getLocalPart())) {
                                   this.inputUnwrappedSOAPParts = 
                                      WSIFUtils.unWrapPart(p, getDefinition());
                                }
  @@ -799,7 +799,7 @@
                                String s = operationName + "Response";
                                Part p = (Part)outputSOAPParts.get(0);
                                QName elementName = p.getElementName();
  -                             if (s.equals(elementName.getLocalPart())) {
  +                             if (elementName != null && 
s.equals(elementName.getLocalPart())) {
                                   this.outputUnwrappedSOAPParts = 
                                      WSIFUtils.unWrapPart(p, getDefinition());
                                }
  
  
  


Reply via email to