diff options
| author | 2022-04-27 13:31:58 -0400 | |
|---|---|---|
| committer | 2022-04-28 10:08:08 -0400 | |
| commit | 649ca6d383e1f5fa80cb3805a5430e6707e23f3c (patch) | |
| tree | db93078259589891a0f5e8085710d18d6d117d28 /libs/input/PointerController.cpp | |
| parent | b5310919c809ae1bb0b30caf86afb02a54a64d3c (diff) | |
Fix an NPE on cancellation when connection is closed
Store the future locally so the callback doesn't lose
a reference to it. Even when the field is cleared, the
callback will always receive the original value, avoiding
NPEs. This change also adds a test for cancellation instead
of falling through to an ignored CancellationException.
Bug: 219965002
Test: manual; timing dependent, dismiss screenshot while
scroll capture request is in flight
Change-Id: I88918bbe9379208cad9456b53ed79d600c73a60b
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions