Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 649ca6d3 authored by Mark Renouf's avatar Mark Renouf
Browse files

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
parent b5310919
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment