From: aclement Date: Fri, 30 Sep 2005 12:56:45 +0000 (+0000) Subject: avoid unpleasant NPE (see pr110307) X-Git-Tag: preDefaultReweavable~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bc66b0bac908d0d89a8b6418c366502338d91474;p=aspectj.git avoid unpleasant NPE (see pr110307) --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java index 71c5d6085..89099dc57 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java @@ -740,9 +740,9 @@ public class AjLookupEnvironment extends LookupEnvironment implements AnonymousC private void addParent(SourceTypeBinding sourceType, ResolvedType parent) { ReferenceBinding parentBinding = (ReferenceBinding)factory.makeTypeBinding(parent); - + if (parentBinding == null) return; // The parent is missing, it will be reported elsewhere. sourceType.rememberTypeHierarchy(); - if (parentBinding.isClass()) { + if (parentBinding.isClass()) { sourceType.superclass = parentBinding; // this used to be true, but I think I've fixed it now, decp is done at weave time!