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

Skip to content
Commit 954766c3 authored by Vishnu Nair's avatar Vishnu Nair Committed by Android Build Coastguard Worker
Browse files

Fix crash when a layer is destroyed immediately after creation

If a layer handle is destroyed before we commit any transactions, we
will  not be able to promote the legacy layer object in the main thread. This
is a few of the remaining warts with the legacy frontend which we can fixed
once we remove the flag. For now, fix this by checking if the layer was
destroyed before accessing the legacy layer object.

Test: presubmit
Fixes: 318347070
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1009dbdbbf28c891d70d9d125b081b3df4c5849d)
Merged-In: Ia54feb4b483f0981acd198a0af07745cec183863
Change-Id: Ia54feb4b483f0981acd198a0af07745cec183863
parent 592fc698
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