Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/xlc
diff options
context:
space:
mode:
authorAlena Laskavaia2015-07-21 00:37:20 +0000
committerGerrit Code Review @ Eclipse.org2015-07-23 18:37:43 +0000
commit4459b9a31778745fd08b464495062117c92461fb (patch)
tree237cd159c601dca9ba0093f07e45633cd59ddc2d /xlc
parent4e6eb33e1f9ed4e16296fa0075a12e9b8bb3dd88 (diff)
downloadorg.eclipse.cdt-4459b9a31778745fd08b464495062117c92461fb.tar.gz
org.eclipse.cdt-4459b9a31778745fd08b464495062117c92461fb.tar.xz
org.eclipse.cdt-4459b9a31778745fd08b464495062117c92461fb.zip
Bug 460953 - SetCrossCommandWizardPage does not check for 'null' in
result for dialog.open() Change-Id: I8bc947e5f72891138cd41fd781d5839d09381c51
Diffstat (limited to 'xlc')
-rw-r--r--xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/wizards/XLCSettingsWizardPage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/wizards/XLCSettingsWizardPage.java b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/wizards/XLCSettingsWizardPage.java
index e1a41720c55..7e5fb789e26 100644
--- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/wizards/XLCSettingsWizardPage.java
+++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/src/org/eclipse/cdt/managedbuilder/xlc/ui/wizards/XLCSettingsWizardPage.java
@@ -60,8 +60,9 @@ public class XLCSettingsWizardPage extends MBSCustomPage {
// open a browse dialog
DirectoryDialog dirDialog = new DirectoryDialog(composite.getShell(), SWT.APPLICATION_MODAL);
String browsedDirectory = dirDialog.open();
- fDirTextBox.setText(browsedDirectory);
-
+ if (browsedDirectory != null) {
+ fDirTextBox.setText(browsedDirectory);
+ }
}
}

Back to the top