From e05df7e5ac7fb91031d8f98d4b93e361918e4b56 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 23 Nov 2005 12:34:51 +0000 Subject: [PATCH] NPE fix for 115251 --- .../aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java index 1f9868a6e..9c683d7d7 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java @@ -979,7 +979,7 @@ public class AspectDeclaration extends TypeDeclaration { ParameterizedTypeBinding pBinding = (ParameterizedTypeBinding)binding; if (pBinding.type instanceof SourceTypeBinding) { SourceTypeBinding sourceSc = (SourceTypeBinding)pBinding.type; - if (sourceSc.scope.referenceContext instanceof AspectDeclaration) { + if (sourceSc.scope != null && sourceSc.scope.referenceContext instanceof AspectDeclaration) { perClause = ((AspectDeclaration)sourceSc.scope.referenceContext).perClause; } else { return null; -- 2.39.5