tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r986835 - /tuscany/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java
Date Wed, 18 Aug 2010 18:25:13 GMT
Author: rfeng
Date: Wed Aug 18 18:25:13 2010
New Revision: 986835

URL: http://svn.apache.org/viewvc?rev=986835&view=rev
Log:
Check if superClass is not null to avoid NPE

Modified:
    tuscany/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java

Modified: tuscany/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java?rev=986835&r1=986834&r2=986835&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java
Wed Aug 18 18:25:13 2010
@@ -47,7 +47,7 @@ public class EagerInitProcessor extends 
         EagerInit annotation = clazz.getAnnotation(EagerInit.class);
         if (annotation == null) {
             Class<?> superClass = clazz.getSuperclass();
-            while (!Object.class.equals(superClass)) {
+            while (superClass != null && !Object.class.equals(superClass)) {
                 annotation = superClass.getAnnotation(EagerInit.class);
                 if (annotation != null) {
                     break;



Mime
View raw message