aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-23 12:34:51 +0000
committeraclement <aclement>2005-11-23 12:34:51 +0000
commite05df7e5ac7fb91031d8f98d4b93e361918e4b56 (patch)
treed8d4f892a7a0f2d36117495466f93acc2487eb12
parentecdc282d48cd6e04d4ccd061e98b25edfa8df743 (diff)
downloadaspectj-e05df7e5ac7fb91031d8f98d4b93e361918e4b56.tar.gz
aspectj-e05df7e5ac7fb91031d8f98d4b93e361918e4b56.zip
NPE fix for 115251
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java2
1 files changed, 1 insertions, 1 deletions
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;