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

Skip to content
Commit 66fdd6f3 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Use an Optional wrapper in TileLifecycleManager

This way, we can prevent NPE, as the variable is never null.
Aditionally, make sure that we always perform operations directly on
Optional.

It's hard to test the NPE because of thread issues, but with this fix we
can guarantee:

* No NPE thanks to Optional
* Behavior is maintained thanks to CTS

Test: atest TileLifecycleManagerTest
Test: atest CtsTileServiceTestCases
Test: atest CtsSystemUiHostTestCases
Fixes: 317014639
Flag: NONE
Change-Id: I27a5e5b4ced1fe5da9b0e4b686cb5e58ca820c8c
parent 77c5fef8
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