Fix the phone process crash due to null UiccPort object access
Method getUiccPortFromRequest may return null. Accessing the
returned UiccPort without NPC may cause phone process crash.
Add nullability annotation for the method and perform NPC
for the return object to fix the crash.
Bug: 232090208
Test: atest TelephonyManagerTest CarrierApiTest
Test: Manual sanity test on MT/MO call, SMS, Data, activation...on both pSIM and eSIM
Merged-In: Iea14a99b824ac67f8d006c7bc68c7dffa6ce1b9e
Change-Id: Iea14a99b824ac67f8d006c7bc68c7dffa6ce1b9e
(cherry picked from commit e53e07d9c1d30999f4d63662a6d30db390803b0e)
1 file changed