1
0
Fork 0
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:
David McKnight 2009-03-11 17:12:07 +00:00
parent c58c969211
commit 6a1b685f8a

View file

@ -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();
} }