From d5e900d42c32d32d87173c82d8a5dc51beb87300 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 26 Mar 2009 02:25:32 +0000 Subject: [PATCH] 269902: guard --- .../org/aspectj/weaver/model/AsmRelationshipProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/model/AsmRelationshipProvider.java b/weaver/src/org/aspectj/weaver/model/AsmRelationshipProvider.java index 164aa2fd7..98fcb9b8e 100644 --- a/weaver/src/org/aspectj/weaver/model/AsmRelationshipProvider.java +++ b/weaver/src/org/aspectj/weaver/model/AsmRelationshipProvider.java @@ -164,7 +164,10 @@ public class AsmRelationshipProvider { IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, INTER_TYPE_DECLARED_BY, false, true); back.addTarget(sourceHandle); - model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile()); + if (sourceNode!=null && sourceNode.getSourceLocation() != null) { + // May have been a bug in the compiled aspect - so it didn't get put in the model + model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile()); + } } } -- 2.39.5