diff options
-rw-r--r-- | weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java index 5b30b79a8..a1e1e4a06 100644 --- a/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java +++ b/weaver/src/org/aspectj/weaver/AsmRelationshipProvider.java @@ -48,7 +48,9 @@ public class AsmRelationshipProvider { foreward.getTargets().add(targetHandle); IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE, MATCHES_DECLARE); - back.getTargets().add(sourceHandle); + if (back != null && back.getTargets() != null) { + back.getTargets().add(sourceHandle); + } } } |