cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1556110 - /cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/blueprint/BlueprintBeanLocator.java
Date Tue, 07 Jan 2014 03:04:44 GMT
Author: dkulp
Date: Tue Jan  7 03:04:43 2014
New Revision: 1556110

URL: http://svn.apache.org/r1556110
Log:
Merged revisions 1556058 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1556058 | dkulp | 2014-01-06 18:04:31 -0500 (Mon, 06 Jan 2014) | 2 lines

  Fix a potential NPE

........

Modified:
    cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/blueprint/BlueprintBeanLocator.java

Modified: cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/blueprint/BlueprintBeanLocator.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/blueprint/BlueprintBeanLocator.java?rev=1556110&r1=1556109&r2=1556110&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/blueprint/BlueprintBeanLocator.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/core/src/main/java/org/apache/cxf/bus/blueprint/BlueprintBeanLocator.java
Tue Jan  7 03:04:43 2014
@@ -69,7 +69,7 @@ public class BlueprintBeanLocator implem
             if (bm instanceof ExtendedBeanMetadata) {
                 cls = ((ExtendedBeanMetadata)bm).getRuntimeClass();
             } 
-            if (cls == null) {
+            if (cls == null && bm.getClassName() != null) {
                 try {
                     Method m = ReflectionUtil.findMethod(container.getClass(), "loadClass",
String.class);
                     cls = (Class<?>)ReflectionUtil.setAccessible(m).invoke(container,
bm.getClassName());



Mime
View raw message