summaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2009-03-04 17:12:43 +0000
committeraclement <aclement>2009-03-04 17:12:43 +0000
commit2309f7b8eba592fd5521952e04ec8f0093daab62 (patch)
tree44db486c999a886df2aa62aa58e799bd092bd1a5 /asm
parenta717f689d51d8392d1f81e50556e25f26658294f (diff)
downloadaspectj-2309f7b8eba592fd5521952e04ec8f0093daab62.tar.gz
aspectj-2309f7b8eba592fd5521952e04ec8f0093daab62.zip
266996: fix
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java3
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();