diff options
author | aclement <aclement> | 2009-03-04 17:12:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-03-04 17:12:43 +0000 |
commit | 2309f7b8eba592fd5521952e04ec8f0093daab62 (patch) | |
tree | 44db486c999a886df2aa62aa58e799bd092bd1a5 | |
parent | a717f689d51d8392d1f81e50556e25f26658294f (diff) | |
download | aspectj-2309f7b8eba592fd5521952e04ec8f0093daab62.tar.gz aspectj-2309f7b8eba592fd5521952e04ec8f0093daab62.zip |
266996: fix
-rw-r--r-- | asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |