cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r984894 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/invoker/AbstractInvoker.java
Date Thu, 12 Aug 2010 18:16:42 GMT
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, 



Mime
View raw message