Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Issue 2413873003: [Android] Fix NullPointerException crash in SpellCheckerSessionBridge. (Closed)

Created:
4 years, 2 months ago by timvolodine
Modified:
4 years, 2 months ago
Reviewers:
Tobias Sargeant
CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org, timvolodine, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Fix NullPointerException crash in SpellCheckerSessionBridge. Add a check for potential null results when the spellchecking service returns in onGetSentenceSuggestions. Haven't tested, reproduced or investigated the cause of this (i.e. nulls in results) but seems the right approach to avoid crashes in the first place, see crbug.com/651458 for more details. BUG=651458, 583616, 629609 Committed: https://crrev.com/f16e0045b2dd3e399e14e5a44db1d8b1b18d46e9 Cr-Commit-Position: refs/heads/master@{#425004}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
timvolodine
ptal, a crash fix as suggested on the bug, we can try to figure out ...
4 years, 2 months ago (2016-10-13 11:04:33 UTC) #4
Tobias Sargeant
lgtm. https://codereview.chromium.org/2413873003/diff/1/components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java File components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java (right): https://codereview.chromium.org/2413873003/diff/1/components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java#newcode104 components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java:104: // In some cases null can be returned ...
4 years, 2 months ago (2016-10-13 11:12:31 UTC) #5
timvolodine
Thanks Toby! https://codereview.chromium.org/2413873003/diff/1/components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java File components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java (right): https://codereview.chromium.org/2413873003/diff/1/components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java#newcode104 components/spellcheck/browser/android/java/src/org/chromium/components/spellcheck/SpellCheckerSessionBridge.java:104: // In some cases null can be ...
4 years, 2 months ago (2016-10-13 12:00:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413873003/20001
4 years, 2 months ago (2016-10-13 12:00:21 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 12:05:36 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 12:07:12 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f16e0045b2dd3e399e14e5a44db1d8b1b18d46e9
Cr-Commit-Position: refs/heads/master@{#425004}

Powered by Google App Engine
This is Rietveld 408576698