From 2309f7b8eba592fd5521952e04ec8f0093daab62 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 4 Mar 2009 17:12:43 +0000 Subject: 266996: fix --- asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'asm') diff --git a/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java b/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java index adee792fd..8dcdd5bc7 100644 --- a/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java +++ b/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java @@ -424,6 +424,9 @@ public class AspectJElementHierarchy implements IHierarchy { * @return any closer match below 'node' or null if nothing is a more accurate match */ public IProgramElement findCloserMatchForLineNumber(IProgramElement node, int lineno) { + if (node == null || node.getChildren() == null) { + return null; + } for (Iterator childrenIter = node.getChildren().iterator(); childrenIter.hasNext();) { IProgramElement child = (IProgramElement) childrenIter.next(); ISourceLocation childLoc = child.getSourceLocation(); -- cgit v1.2.3