diff --git a/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java b/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java index 8396cbbca6..43897d9d84 100644 --- a/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java +++ b/base/org.eclipse.jdt.groovy.core/src/org/codehaus/jdt/groovy/internal/compiler/ast/GroovyClassScope.java @@ -92,14 +92,12 @@ protected MethodBinding[] augmentMethodBindings(MethodBinding[] methodBindings) } boolean implementsGroovyLangObject = false; - ReferenceBinding[] superInterfaces = binding.superInterfaces; - if (superInterfaces != null) { - for (int i = 0, max = superInterfaces.length; i < max; i++) { - char[][] interfaceName = superInterfaces[i].compoundName; - if (CharOperation.equals(interfaceName, GROOVY_LANG_GROOVYOBJECT)) { - implementsGroovyLangObject = true; - break; - } + ReferenceBinding[] superInterfaces = binding.superInterfaces != null ? binding.superInterfaces : new ReferenceBinding[0]; + for (int i = 0, max = superInterfaces.length; i < max; i++) { + char[][] interfaceName = superInterfaces[i].compoundName; + if (CharOperation.equals(interfaceName, GROOVY_LANG_GROOVYOBJECT)) { + implementsGroovyLangObject = true; + break; } }