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

Skip to content
Commit 60b7f89f authored by Austin Borger's avatar Austin Borger
Browse files

Add checks for nullptr in Camera2Client::disconnect

If Camera2Client::initialize fails in CameraService::connectHelper,
we call disconnect immediately afterwards. Some objects may have been
constructed, while others might not have been. Check for null before
dereferencing their pointers.

Bug: 347116037
Flag: EXEMPT bugfix
Test: CtsCameraTestCases
Change-Id: I5ad2551de1928d6590216f8fafcffa432b66ff5c
parent f8ad9b37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment