Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/cross
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 /cross
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 'cross')
-rw-r--r--cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java
index 1448e5057dc..be36a18d15d 100644
--- a/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java
+++ b/cross/org.eclipse.cdt.build.crossgcc/src/org/eclipse/cdt/internal/build/crossgcc/SetCrossCommandWizardPage.java
@@ -125,8 +125,9 @@ public class SetCrossCommandWizardPage extends MBSCustomPage {
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dirDialog = new DirectoryDialog(composite.getShell(), SWT.APPLICATION_MODAL);
String browsedDirectory = dirDialog.open();
- pathTxt.setText(browsedDirectory);
-
+ if (browsedDirectory != null) {
+ pathTxt.setText(browsedDirectory);
+ }
}
});
layoutData = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);

Back to the top