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

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

Fix null pointer dereference in Camera2Client::stopPreviewL

stopPreviewL may in rare cases be called before initializeImpl. This is
highly unusual and should not happen, however when it does happen
crashing the server is not a good way to recover. Check if we've
initialized or not, and if not early out of topPreviewL given there's
no stream to stop.

Bug: 290086710
Test: Built locally
Flag: EXEMPT no significant behavior change
Change-Id: I19bf2e1737c507081be4d3222d532f46b539087c
parent f19a87d4
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