aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2009-11-19 17:19:30 +0000
committeraclement <aclement>2009-11-19 17:19:30 +0000
commitef9d5b81965983759649e3d0d8cc4e4f26e1f5af (patch)
tree8228e7de7613dc69b1496fad2059e6a40b168d9c /org.aspectj.ajdt.core
parentb503147e769fb7692aa54eb57f7f7b363329b482 (diff)
downloadaspectj-ef9d5b81965983759649e3d0d8cc4e4f26e1f5af.tar.gz
aspectj-ef9d5b81965983759649e3d0d8cc4e4f26e1f5af.zip
294647: guard and possible fix
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
index 4f5260705..3d2c483c7 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java
@@ -241,7 +241,9 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate {
if (amd instanceof PointcutDeclaration) {
PointcutDeclaration d = (PointcutDeclaration) amd;
ResolvedPointcutDefinition df = d.makeResolvedPointcutDefinition(factory);
- declaredPointcuts.add(df);
+ if (df!=null) {
+ declaredPointcuts.add(df);
+ }
} else if (amd instanceof InterTypeDeclaration) {
// these are handled in a separate pass
continue;