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:
parent
f6be2cde98
commit
5dfb2578ee
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue