axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidills...@apache.org
Subject svn commit: r494009 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingWSDLValidationHandler.java
Date Mon, 08 Jan 2007 10:12:33 GMT
Author: davidillsley
Date: Mon Jan  8 02:12:32 2007
New Revision: 494009

URL: http://svn.apache.org/viewvc?view=rev&rev=494009
Log:
Avoid potential NPE

Modified:
    webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingWSDLValidationHandler.java

Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingWSDLValidationHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingWSDLValidationHandler.java?view=diff&rev=494009&r1=494008&r2=494009
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingWSDLValidationHandler.java
(original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingWSDLValidationHandler.java
Mon Jan  8 02:12:32 2007
@@ -51,6 +51,12 @@
      */
     private void checkUsingAddressing(MessageContext msgContext)
             throws AxisFault {
+        if(msgContext.getAxisService() == null){
+            if (log.isTraceEnabled()){
+                log.trace("checkUsingAddressing: axisService null, cannot check UsingAddressing");
+            }
+            return;
+        }
         String addressingFlag = msgContext.getAxisService().getWSAddressingFlag();
         if (log.isTraceEnabled()){
             log.trace("checkUsingAddressing: WSAddressingFlag=" + addressingFlag);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message