Mac File Dialogs: Fix crash due to adding nil value to an NSMutableSet.
Crash reports beginning from Chrome V48 suggest that CreateUTIFromExtension may return nil. This causes a crash when the uti string is added to the NSMutableSet which holds the uti strings corresponding to the extension dropdown. This CL does a nil check before adding the string to the set, which should prevent the crash. BUG=630101 Review-Url: https://codereview.chromium.org/2164223003 Cr-Commit-Position: refs/heads/master@{#407114}
Showing
Please register or sign in to comment