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

Skip to content
Commit 8de96493 authored by utzcoz's avatar utzcoz Committed by Bruno Martins
Browse files

Fix NPE when resizing with transferring focus failed



If InputManager.transferTouchFocus failed when resizing, the
TaskPositioningController will call TaskPositioner.unregister
to unregister InputChannel. But the mClientCallback used by
unregister is initialized by TaskPositioner.startDrag called after
InputManager.transferTouchFocus, so it will cause NPE problem.

Add NPE checking before using mClientCallback to fix this problem.

Test: atest WmTests:TaskPositioningControllerTests

Change-Id: I245a6a3591975cdbfa6453e490cb88aa2c2fe672
Signed-off-by: default avatarutzcoz <utzcoz@gmail.com>
parent aaecaa08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment