]> source.dussan.org Git - aspectj.git/commitdiff
Applied patch for bug#77799 "NullPointerException in StructureSearchManager"
authormkersten <mkersten>
Thu, 4 Nov 2004 15:44:51 +0000 (15:44 +0000)
committermkersten <mkersten>
Thu, 4 Nov 2004 15:44:51 +0000 (15:44 +0000)
ajde/src/org/aspectj/ajde/ui/StructureSearchManager.java

index 36c047bf4dbb8b3df8e69e4aec001c3b5b2298c2..a87c207fd9fa4d5881e3c644497c96ea1ab2cc77 100644 (file)
@@ -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) {