From 2da95deb4e044b41973ac42fa1c39620d3a49ebb Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 5 Aug 2004 10:39:22 +0000 Subject: guard for NPE. --- asm/src/org/aspectj/asm/internal/ProgramElement.java | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3