summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpicker/source/aqua/AquaFilePickerDelegate.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/fpicker/source/aqua/AquaFilePickerDelegate.mm b/fpicker/source/aqua/AquaFilePickerDelegate.mm
index 2bece2d90e..7a55749519 100644
--- a/fpicker/source/aqua/AquaFilePickerDelegate.mm
+++ b/fpicker/source/aqua/AquaFilePickerDelegate.mm
@@ -59,8 +59,10 @@
- (MacOSBOOL)panel:(id)sender shouldShowFilename:(NSString *)filename
{
- if (filterHelper == NULL)
+ if( filterHelper == NULL )
return true;
+ if( filename == nil )
+ return false;
return filterHelper->filenameMatchesFilter(filename);
}