commit | f170fcc7298018d29ca91ee27052799bd658b437 | [log] [tgz] |
---|---|---|
author | Austin Borger <borgera@google.com> | Tue Nov 19 14:48:40 2024 -0800 |
committer | Austin Borger <borgera@google.com> | Tue Nov 19 14:48:40 2024 -0800 |
tree | 2d9fb9b6e963537b53da6f1af9286f3145be3dab | |
parent | f19a87d41b5fe67457f8c2aa7771d1381f0963e0 [diff] |
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