mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-03 05:33:33 +02:00
[fix] NPE if called from the Eclipse new element wizard dialog
This commit is contained in:
parent
d4c9e1702a
commit
21b5047b8c
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,8 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS
|
||||||
* Notify the registered selection changed listener about a changed selection.
|
* Notify the registered selection changed listener about a changed selection.
|
||||||
*/
|
*/
|
||||||
private void fireSelectionChanged() {
|
private void fireSelectionChanged() {
|
||||||
|
if (getSelection() == null) return;
|
||||||
|
|
||||||
SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
|
SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
|
||||||
Iterator iterator = selectionChangedListener.iterator();
|
Iterator iterator = selectionChangedListener.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue