summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Mark Renouf <mrenouf@google.com> 2022-04-27 13:31:58 -0400
committer Mark Renouf <mrenouf@google.com> 2022-04-28 10:08:08 -0400
commit649ca6d383e1f5fa80cb3805a5430e6707e23f3c (patch)
treedb93078259589891a0f5e8085710d18d6d117d28 /libs/input/PointerController.cpp
parentb5310919c809ae1bb0b30caf86afb02a54a64d3c (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