diff options
| author | 2022-06-24 14:25:00 +0800 | |
|---|---|---|
| committer | 2023-03-28 13:36:10 +0800 | |
| commit | 1419167262f06e25bd0bd2f9f0d98a226511851e (patch) | |
| tree | ce0d89b8184616ca7d14388b768d03267feaa8c0 /libs/androidfw/AttributeResolution.cpp | |
| parent | 3c825a4d8921747fce4ac4a4498a779b6d8f3b3a (diff) | |
Fix NullPointerException to get sim accounts
After the process "android.process.acore" is killed, the null value will be returned by ContentResolver when the api "getSimAccounts" is called, which will throw NullPointerException.
Explicitly get a ContentProviderClient and call on it. When the process is killed, the RemoteException will be catched.
Bug: 231687839
Change-Id: Idb265d9fcc781612e571deae5014729e3ed59b44
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions