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

Commit f5b7d8b8 authored by Merissa Mitchell's avatar Merissa Mitchell
Browse files

[WindowDecor] Add null check for AppHeaderViewHolder

in onMaximizeButtonHoverExit. In case we get an additional motion event
after the window decoration is closed/destroyed, we might get a
onMaximizeButtonHoverExit call after mWindowDecorViewHolder is already
closed and set to null, which will lead to an NPE.

This CL adds a null check to prevent the crash if this happens. This is
not needed in WindowDecor2 because the view holder is closed but never
set to null there.

Fixes: 435664004
Test: atest DesktopModeWindowDecorationTests
Flag: EXEMPT bug fix
Change-Id: I1cd26cd14ec7c37074d66d891f2c9b828da60c7f
parent c3e63e2e
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