We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bde407 commit 04fb6e0Copy full SHA for 04fb6e0
macosx/tkMacOSXDialog.c
@@ -37,7 +37,9 @@ static void setAllowedFileTypes(
37
NSMutableArray<UTType *> *allowedTypes = [NSMutableArray array];
38
for (NSString *ext in extensions) {
39
UTType *uttype = [UTType typeWithFilenameExtension: ext];
40
- [allowedTypes addObject:uttype];
+ if (uttype) {
41
+ [allowedTypes addObject:uttype];
42
+ }
43
}
44
[panel setAllowedContentTypes:allowedTypes];
45
} else {
0 commit comments