1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +02:00

Avoid odd NPE killing all the SystemView

This commit is contained in:
Martin Oberhuber 2007-08-09 15:27:32 +00:00
parent 10225d8aee
commit fb44e49dfb

View file

@ -3508,7 +3508,7 @@ public class SystemView extends SafeTreeViewer
((TreeItem) item).setExpanded(true);
if (debug) System.out.println("Re-Expanded RemoteItem: " + itemToExpand.remoteName); //$NON-NLS-1$
} else if (debug) System.out.println("Re-Expand of RemoteItem '" + itemToExpand.remoteName + "' failed. Not found"); //$NON-NLS-1$ //$NON-NLS-2$
} else {
} else if (itemToExpand.data!=null) {
setExpandedState(itemToExpand.data, true);
if (debug) System.out.println("Re-Expanded non-remote Item: " + itemToExpand.data); //$NON-NLS-1$
}