mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
trivial - null pointer check for case where event handling happens before widgets created
This commit is contained in:
parent
c58c969211
commit
6a1b685f8a
1 changed files with 8 additions and 4 deletions
|
@ -1325,10 +1325,14 @@ class RemoteImportWizardPage1 extends WizardResourceImportPage implements Listen
|
||||||
}
|
}
|
||||||
|
|
||||||
// if review is selected, the other options are grayed out without save settings
|
// if review is selected, the other options are grayed out without save settings
|
||||||
boolean isReview = reviewSynchronizeCheckbox.getSelection();
|
if (reviewSynchronizeCheckbox != null){ // event handling could come before the widgets are created
|
||||||
overwriteExistingResourcesCheckbox.setEnabled(!isReview);
|
boolean isReview = reviewSynchronizeCheckbox.getSelection();
|
||||||
createContainerStructureButton.setEnabled(!isReview);
|
overwriteExistingResourcesCheckbox.setEnabled(!isReview);
|
||||||
createOnlySelectedButton.setEnabled(!isReview);
|
createContainerStructureButton.setEnabled(!isReview);
|
||||||
|
createOnlySelectedButton.setEnabled(!isReview);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// this calls to determine whether page can be completed
|
// this calls to determine whether page can be completed
|
||||||
super.updateWidgetEnablements();
|
super.updateWidgetEnablements();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue