1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

avoid NPE when event handling comes before widgets created

This commit is contained in:
Martin Oberhuber 2009-03-19 21:49:32 +00:00
parent 7b6208c5cd
commit 76ff946105

View file

@ -284,11 +284,13 @@ class RemoteExportWizardPage1 extends WizardExportResourcesPage implements Liste
descFileBrowseButton.setEnabled(isSaveSettings);
// if review is selected, the other options are grayed out without save settings
if (reviewSynchronizeCheckbox != null) { // event handling could come before the widgets are created
boolean isReview = reviewSynchronizeCheckbox.getSelection();
overwriteExistingFilesCheckbox.setEnabled(!isReview);
createDirectoryStructureButton.setEnabled(!isReview);
createSelectionOnlyButton.setEnabled(!isReview);
}
}
/**
* Attempts to ensure that the specified directory exists on the local file system.