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

Skip to content
Commit dea70866 authored by Jeongsik Mun's avatar Jeongsik Mun Committed by Todd Kennedy
Browse files

Fix system server crash during sendMyPackageSuspendedOrUnsuspended()

IllegalArgumentException could be thrown when the package doesn't exist
from getSuspendedPackageAppExtrasInternal(), which causes system server
crash

This fix replaces throwing IllegalStateException with returning null,
instead of handling the exception. Returning null when the package
doesn't exist still operates according to the public contact since
an uninstalled application would not be considered 'suspended'.

Bug: 171906179
Test: compile & verify basic functions working
Change-Id: I9b23c17530393a0f51e283d0bc2c44966ddf6298
parent 1d2102b5
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