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

Issue 1087263004: Added checks in TouchDevice.java to avoid NPEs. (Closed)

Created:
5 years, 8 months ago by mustaq
Modified:
5 years, 8 months ago
Reviewers:
jdduke (slow)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added checks in TouchDevice.java to avoid NPEs. It is possible that an input device has been removed from the system right after grabbing the device ids using InputDevice.getDeviceIds(). This CL adds checks in TouchDevice.java to avoid NPEs in such cases. BUG=480619 Committed: https://crrev.com/6d91546a0756a6b2171ad146a0e02ee28fce1975 Cr-Commit-Position: refs/heads/master@{#326837}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M ui/android/java/src/org/chromium/ui/base/TouchDevice.java View 1 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
mustaq
ptal.
5 years, 8 months ago (2015-04-24 16:14:32 UTC) #2
jdduke (slow)
lgtm with nits. https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode57 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:57: int pointerTypesVal = 0; Why not ...
5 years, 8 months ago (2015-04-24 16:17:32 UTC) #3
mustaq
https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode57 ui/android/java/src/org/chromium/ui/base/TouchDevice.java:57: int pointerTypesVal = 0; On 2015/04/24 16:17:32, jdduke wrote: ...
5 years, 8 months ago (2015-04-24 16:38:49 UTC) #4
jdduke (slow)
On 2015/04/24 16:38:49, mustaq wrote: > https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java > File ui/android/java/src/org/chromium/ui/base/TouchDevice.java (right): > > https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java#newcode57 > ...
5 years, 8 months ago (2015-04-24 16:42:30 UTC) #5
mustaq
On 2015/04/24 16:42:30, jdduke wrote: > On 2015/04/24 16:38:49, mustaq wrote: > > > https://codereview.chromium.org/1087263004/diff/1/ui/android/java/src/org/chromium/ui/base/TouchDevice.java ...
5 years, 8 months ago (2015-04-24 16:59:02 UTC) #6
jdduke (slow)
On 2015/04/24 16:59:02, mustaq wrote: > On 2015/04/24 16:42:30, jdduke wrote: > > On 2015/04/24 ...
5 years, 8 months ago (2015-04-24 17:00:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1087263004/20001
5 years, 8 months ago (2015-04-24 17:16:10 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-24 18:07:19 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 18:08:57 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6d91546a0756a6b2171ad146a0e02ee28fce1975
Cr-Commit-Position: refs/heads/master@{#326837}

Powered by Google App Engine
This is Rietveld 408576698