cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1410202 - in /cxf/branches/2.6.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataBindingTest.java
Date Fri, 16 Nov 2012 05:42:41 GMT
Author: ningjiang
Date: Fri Nov 16 05:42:41 2012
New Revision: 1410202

URL: http://svn.apache.org/viewvc?rev=1410202&view=rev
Log:
Merged revisions 1410201 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1410201 | ningjiang | 2012-11-16 13:32:22 +0800 (Fri, 16 Nov 2012) | 1 line
  
  Fixed the NPE WSDLServiceUtils
........

Modified:
    cxf/branches/2.6.x-fixes/   (props changed)
    cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java
    cxf/branches/2.6.x-fixes/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataBindingTest.java

Propchange: cxf/branches/2.6.x-fixes/
------------------------------------------------------------------------------
    svn:mergeinfo = /cxf/trunk:1410201

Propchange: cxf/branches/2.6.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java?rev=1410202&r1=1410201&r2=1410202&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java
Fri Nov 16 05:42:41 2012
@@ -41,7 +41,10 @@ public final class WSDLServiceUtils {
                 sb.delete(0, sb.length());
                 sb.append(ext.getElementType().getNamespaceURI());
                 try {
-                    factory = bus.getExtension(BindingFactoryManager.class).getBindingFactory(sb.toString());
+                    BindingFactoryManager manager = bus.getExtension(BindingFactoryManager.class);
+                    if (manager != null) {
+                        factory = manager.getBindingFactory(sb.toString());
+                    }
                 } catch (BusException e) {
                     // ignore, we'll use a generic BindingInfo
                 }

Modified: cxf/branches/2.6.x-fixes/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataBindingTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataBindingTest.java?rev=1410202&r1=1410201&r2=1410202&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataBindingTest.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/databinding/jaxb/src/test/java/org/apache/cxf/jaxb/JAXBDataBindingTest.java
Fri Nov 16 05:42:41 2012
@@ -97,7 +97,7 @@ public class JAXBDataBindingTest extends
         bindingFactoryManager = control.createMock(BindingFactoryManager.class);
         destinationFactoryManager = control.createMock(DestinationFactoryManager.class);
         
-        EasyMock.expect(bus.getExtension(BindingFactoryManager.class)).andReturn(bindingFactoryManager);
+        EasyMock.expect(bus.getExtension(BindingFactoryManager.class)).andStubReturn(bindingFactoryManager);
         EasyMock.expect(bus.getExtension(DestinationFactoryManager.class))
             .andStubReturn(destinationFactoryManager);
 



Mime
View raw message