diff options
author | aclement <aclement> | 2004-08-05 10:39:22 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-05 10:39:22 +0000 |
commit | 2da95deb4e044b41973ac42fa1c39620d3a49ebb (patch) | |
tree | e3911f83ddc095bd500de18e9277da5188ea0be6 | |
parent | 81b5b1d6d34d5277d6595b5810300d6b8cd7f833 (diff) | |
download | aspectj-2da95deb4e044b41973ac42fa1c39620d3a49ebb.tar.gz aspectj-2da95deb4e044b41973ac42fa1c39620d3a49ebb.zip |
guard for NPE.
-rw-r--r-- | asm/src/org/aspectj/asm/internal/ProgramElement.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java index 913a1cebc..ef4b28507 100644 --- a/asm/src/org/aspectj/asm/internal/ProgramElement.java +++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java @@ -353,10 +353,12 @@ public class ProgramElement implements IProgramElement { // } public IProgramElement walk(HierarchyWalker walker) { + if (children!=null) { for (Iterator it = children.iterator(); it.hasNext(); ) { IProgramElement child = (IProgramElement)it.next(); walker.process(child); } + } return this; } |