Fix null pointer crash in Windows native spellchecker
CL https://chromium-review.googlesource.com/c/chromium/src/+/1706574 introduced a crash by missing a null check in the case where the OS fails to construct the native spellchecker object. This CL adds null checks in 2 places: 1) Where the null pointer was being dereferenced, to future-proof the method where the crash was actually happening. 2) In the telemetry code path before attempting to use the native spellchecker, since there's no point trying to record native spellchecker data if the native spellchecker doesn't exist. Bug: 987025 Change-Id: I80d289f9299d951a7951a321237a48399587b89a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715600Reviewed-by:Tim Volodine <timvolodine@chromium.org> Commit-Queue: Guillaume Jenkins <gujen@google.com> Cr-Commit-Position: refs/heads/master@{#680545}
Showing
Please register or sign in to comment