From 6ca90590da928bbb049b782623cd727defb53fdb Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 18 Aug 2010 18:25:13 +0000 Subject: Check if superClass is not null to avoid NPE git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986835 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/implementation/java/introspect/impl/EagerInitProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sca-java-2.x') diff --git a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java index 9ad7e8f7a9..5c0e2c1397 100644 --- a/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java +++ b/sca-java-2.x/trunk/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/EagerInitProcessor.java @@ -47,7 +47,7 @@ public class EagerInitProcessor extends BaseJavaClassVisitor { 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; -- cgit v1.2.3