From: mkersten Date: Thu, 4 Nov 2004 15:44:51 +0000 (+0000) Subject: Applied patch for bug#77799 "NullPointerException in StructureSearchManager" X-Git-Tag: V1_2_1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aab9c2c57db1c014e03720676d7e3cac14a761aa;p=aspectj.git Applied patch for bug#77799 "NullPointerException in StructureSearchManager" --- diff --git a/ajde/src/org/aspectj/ajde/ui/StructureSearchManager.java b/ajde/src/org/aspectj/ajde/ui/StructureSearchManager.java index 36c047bf4..a87c207fd 100644 --- a/ajde/src/org/aspectj/ajde/ui/StructureSearchManager.java +++ b/ajde/src/org/aspectj/ajde/ui/StructureSearchManager.java @@ -55,7 +55,7 @@ public class StructureSearchManager { matches.add(node); } } - if (node.getChildren() != null) { + if (node != null && node.getChildren() != null) { for (Iterator it = node.getChildren().iterator(); it.hasNext(); ) { IProgramElement nextNode = (IProgramElement)it.next(); if (nextNode instanceof IProgramElement) {