ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r524504 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerInvokerUtils.java
Date Sun, 01 Apr 2007 01:38:03 GMT
Author: dims
Date: Sat Mar 31 18:38:02 2007
New Revision: 524504

URL: http://svn.apache.org/viewvc?view=rev&rev=524504
Log:
protect from one more NPE

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerInvokerUtils.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerInvokerUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerInvokerUtils.java?view=diff&rev=524504&r1=524503&r2=524504
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerInvokerUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerInvokerUtils.java
Sat Mar 31 18:38:02 2007
@@ -119,9 +119,11 @@
         // actually have useful code under EndpointDescription.getHandlerList()
 
         List<Handler> handlers = null;
-        InvocationContext ic = msgCtx.getInvocationContext();
-        if(ic != null) {
-            handlers = ic.getHandlers();
+        if(msgCtx != null) {
+            InvocationContext ic = msgCtx.getInvocationContext();
+            if(ic != null) {
+                handlers = ic.getHandlers();
+            }
         }
         if(handlers == null) {
             HandlerResolverImpl hResolver = new HandlerResolverImpl(endpointDesc);



---------------------------------------------------------------------
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