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

Skip to content
Commit 7abd586c authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Fix null pointer exception in onResultReceived

It's possible that a pending request is removed from
CaptureCallbackMap before its result is received.

In that case, the callback holder will be null. And we should
not dereference the null pointer.

A minor code cleanup is also made.

Test: Camera CTS
Bug: 295066682
Change-Id: I70b04ac4bb4bd4c5786677fd2117aa15eafafef6
parent ccb4330c
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