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
Change-Id: Iea14a99b824ac67f8d006c7bc68c7dffa6ce1b9e
1 file changed