DescriptionMac 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
Committed: https://crrev.com/d338ac5a24ba53dae98c779346e371c29f02ebed
Cr-Commit-Position: refs/heads/master@{#407114}
Patch Set 1 #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 12 (5 generated)
|