Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 22567 invoked from network); 12 Aug 2010 18:18:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 18:18:03 -0000 Received: (qmail 94600 invoked by uid 500); 12 Aug 2010 18:18:03 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 94553 invoked by uid 500); 12 Aug 2010 18:18:02 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 94546 invoked by uid 99); 12 Aug 2010 18:18:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 18:18:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 18:18:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D3D6A23889EB; Thu, 12 Aug 2010 18:16:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100812181642.D3D6A23889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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,