axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/message SOAPHeaderElement.java
Date Sat, 13 Sep 2003 12:52:13 GMT
dims        2003/09/13 05:52:13

  Modified:    java/src/org/apache/axis/message SOAPHeaderElement.java
  Log:
  Prevent NPE (http://marc.theaimsgroup.com/?t=105967684700009&r=1&w=2)
  
  Revision  Changes    Path
  1.26      +1 -1      ws-axis/java/src/org/apache/axis/message/SOAPHeaderElement.java
  
  Index: SOAPHeaderElement.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/SOAPHeaderElement.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- SOAPHeaderElement.java	5 Sep 2003 17:58:57 -0000	1.25
  +++ SOAPHeaderElement.java	13 Sep 2003 12:52:13 -0000	1.26
  @@ -106,7 +106,7 @@
           // TLS (SOAPConstants.getCurrentVersion() ?)
           SOAPConstants soapConstants = SOAPConstants.SOAP11_CONSTANTS;
   
  -        if (getNamespaceURI().equals(SOAPConstants.SOAP12_CONSTANTS.getEnvelopeURI()))
  +        if (getNamespaceURI() != null && getNamespaceURI().equals(SOAPConstants.SOAP12_CONSTANTS.getEnvelopeURI()))
               soapConstants = SOAPConstants.SOAP12_CONSTANTS;
   
           String val = elem.getAttributeNS(soapConstants.getEnvelopeURI(),
  
  
  

Mime
View raw message