1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

null pointer check

This commit is contained in:
David McKnight 2010-12-10 21:26:43 +00:00
parent f6be2cde98
commit 5dfb2578ee

View file

@ -5962,11 +5962,13 @@ public class SystemView extends SafeTreeViewer
}
}
SelectionChangedEvent dummyEvent = new SelectionChangedEvent(this, parentSelection);
if (parentSelection != null){
SelectionChangedEvent dummyEvent = new SelectionChangedEvent(this, parentSelection);
// first change the selection, then change it back (otherwise the property sheet ignores the event)
fireSelectionChanged(dummyEvent);
}
SelectionChangedEvent event = new SelectionChangedEvent(this, selection);
// first change the selection, then change it back (otherwise the property sheet ignores the event)
fireSelectionChanged(dummyEvent);
// fire the event
fireSelectionChanged(event);