commit | 707982b253efc0d646e20792296002283cb17efd | [log] [tgz] |
---|---|---|
author | Sarah Chin <sarahchin@google.com> | Wed Oct 26 14:19:11 2022 -0700 |
committer | Sarah Chin <sarahchin@google.com> | Thu Oct 27 00:56:19 2022 +0000 |
tree | 36bc9e387abd8af07cfe0c7e990f6f66d466b662 | |
parent | cf02a400971405bb69515bcff8bec5eacf1a6fa9 [diff] |
SliceStore initialization get Looper from Phone Use phone.getLooper() instead of Looper.myLooper() to prevent potential NPEs. Looper.myLooper() might not have been initialized or called Looper.prepare() when SliceStore is first created/initialized, but the Looper from Phone is guaranteed to exist. Bug: 255687685 Test: atest TelephonyManagerReadNonDangerousPermissionTest#testPremiumCapabilities Test: manually verified no NPE Change-Id: I5dc69be94cfab5fb7d99ea9834c2dca707b0c316