summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2010-05-03 18:21:29 +0000
committerScott Kovatch <skovatch>2010-05-03 18:21:29 +0000
commita6f6f0c6da1338c791fd15a091bf8705c5ee725c (patch)
treea36e69284e33bacd3e58816516fff98d59bd9096
parent9d1ef85b1ebc1573224e081fdb9056605ae0a470 (diff)
downloadeclipse.platform.swt-a6f6f0c6da1338c791fd15a091bf8705c5ee725c.tar.gz
eclipse.platform.swt-a6f6f0c6da1338c791fd15a091bf8705c5ee725c.tar.xz
eclipse.platform.swt-a6f6f0c6da1338c791fd15a091bf8705c5ee725c.zip
311216 - check for zero-length path in filter.
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java
index 680457db13..7c3b01f0df 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DirectoryDialog.java
@@ -137,7 +137,7 @@ public String open () {
}
Display display = parent != null ? parent.getDisplay() : Display.getCurrent();
display.setModalDialog(this);
- NSString dir = filterPath != null ? NSString.stringWith(filterPath) : null;
+ NSString dir = (filterPath != null && filterPath.length() > 0) ? NSString.stringWith(filterPath) : null;
int /*long*/ response = panel.runModalForDirectory(dir, null);
if (parent != null && (style & SWT.SHEET) != 0) {
application.endSheet(panel, 0);