Author: dkulp
Date: Thu Aug 12 18:16:42 2010
New Revision: 984894

URL: http://svn.apache.org/viewvc?rev=984894&view=rev
Log:
[CXF-2824] Put NPE guard in place for looking up the method

Modified:
    
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java

Modified: 
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java?rev=984894&r1=984893&r2=984894&view=diff
==============================================================================
--- 
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
 (original)
+++ 
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
 Thu Aug 12 18:16:42 2010
@@ -54,7 +54,7 @@ public abstract class AbstractInvoker im
             BindingOperationInfo bop = 
exchange.get(BindingOperationInfo.class);
             MethodDispatcher md = (MethodDispatcher) 
                 
exchange.get(Service.class).get(MethodDispatcher.class.getName());
-            Method m = md.getMethod(bop);
+            Method m = bop == null ? null : md.getMethod(bop);
             if (m == null && bop == null) {
                 LOG.severe(new Message("MISSING_BINDING_OPERATION", 
LOG).toString());
                 throw new Fault(new Message("EXCEPTION_INVOKING_OBJECT", LOG, 


Reply via email to