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

[342208] potential NPE in SystemView$ExpandRemoteObjects.execute()

This commit is contained in:
David McKnight 2011-04-07 19:11:39 +00:00
parent 835ca895fd
commit c8af0d6e2f

View file

@ -78,6 +78,7 @@
* David McKnight (IBM) - [241726] Move doesn't select the moved items
* David McKnight (IBM) - [333196] New member filter dialogue keep popping up when creating a shared member filter.
* David McKnight (IBM) - [341281] amendment to fix for bug 308983
* David McKnight (IBM) - [342208] potential NPE in SystemView$ExpandRemoteObjects.execute()
********************************************************************************/
package org.eclipse.rse.internal.ui.view;
@ -287,8 +288,10 @@ public class SystemView extends SafeTreeViewer
// if found, re-expand it
if (item != null && !item.isDisposed()) {
IRSECallback callback = getCallbackForSubChildren(itemToExpand, _toExpand);
createChildren(item, callback);
((TreeItem) item).setExpanded(true);
if (callback != null){
createChildren(item, callback);
((TreeItem) item).setExpanded(true);
}
}
} else if (itemToExpand.data!=null) {
setExpandedState(itemToExpand.data, true);