Merged "Open PHP Declaration" and "Open Include File" into one action "Open Declarati...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / TreeNode.java
index e3bf412..e4130b0 100644 (file)
@@ -36,7 +36,7 @@ public abstract class TreeNode
        public abstract String getName();
 
     public Bookmark getBookmark() {
-        return getParent().getBookmark();
+        return getParent() == null ? null : getParent().getBookmark();
     }
     
     public String getLabelName() {
@@ -99,6 +99,7 @@ public abstract class TreeNode
     protected void dispose() {
         this.disposed = true;
         removeAllChildren();
+//        this.parent = null;
     }
     protected void removeAllChildren() {
         for (Iterator i = this.children.iterator(); i.hasNext();) {
@@ -115,6 +116,7 @@ public abstract class TreeNode
         return null;
     }
     protected abstract void initializeChildren() throws SQLException, NotConnectedException;
+    
     public void reload() throws NotConnectedException, SQLException {
         if (isInitialized()) {
             initializeChildren();