1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[187739] added !item.isDisposed() check when looking from expanded items

This commit is contained in:
David McKnight 2008-09-03 14:34:37 +00:00
parent 0ecfca3e39
commit c1e6d73b80

View file

@ -270,7 +270,7 @@ public class SystemView extends SafeTreeViewer
item = findFirstRemoteItemReference(itemToExpand.remoteName, itemToExpand.subsystem, itemToExpand.parentItem);
// if found, re-expand it
if (item != null) {
if (item != null && !item.isDisposed()) {
IRSECallback callback = getCallbackForSubChildren(itemToExpand, _toExpand);
createChildren(item, callback);
((TreeItem) item).setExpanded(true);