summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Georgi2012-02-03 11:23:25 (EST)
committerCurtis Windatt2012-02-03 11:23:25 (EST)
commit8a371be3e6f2bf643a3a96bbe3fb6129563b3126 (patch)
treece9a30d9e6efc44d0bf4e53e42bec515f2aad612
parentb6653ea933377110b4a3972d50702bacc5b92605 (diff)
downloadeclipse.pde.ui-8a371be3e6f2bf643a3a96bbe3fb6129563b3126.zip
eclipse.pde.ui-8a371be3e6f2bf643a3a96bbe3fb6129563b3126.tar.gz
eclipse.pde.ui-8a371be3e6f2bf643a3a96bbe3fb6129563b3126.tar.bz2
Bug 370543 - NPE in Tracing page on cancellation of browse dialogv20120203-1623
-rw-r--r--ui/org.eclipse.ui.trace/src/org/eclipse/ui/trace/internal/TracingPreferencePage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/org.eclipse.ui.trace/src/org/eclipse/ui/trace/internal/TracingPreferencePage.java b/ui/org.eclipse.ui.trace/src/org/eclipse/ui/trace/internal/TracingPreferencePage.java
index 474d898..36207f0 100644
--- a/ui/org.eclipse.ui.trace/src/org/eclipse/ui/trace/internal/TracingPreferencePage.java
+++ b/ui/org.eclipse.ui.trace/src/org/eclipse/ui/trace/internal/TracingPreferencePage.java
@@ -298,7 +298,9 @@ public class TracingPreferencePage extends PreferencePage implements IWorkbenchP
final FileDialog dialog = new FileDialog(TracingPreferencePage.this.tracingOptionsGroup.getShell(), SWT.SAVE);
dialog.setFileName(TracingPreferencePage.this.tracingFileText.getText());
final String result = dialog.open();
- TracingPreferencePage.this.tracingFileText.setText(result);
+ if (result != null) {
+ TracingPreferencePage.this.tracingFileText.setText(result);
+ }
}
});
GridDataFactory.fillDefaults().applyTo(this.tracingFileBrowseButton);