summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ajde/src/org/aspectj/ajde/ui/StructureSearchManager.java2
1 files changed, 1 insertions, 1 deletions
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) {