Crash in PreferredSimDialogFragment

NullPointerException when removing physical SIM card

Bug: 244622300
Test: Manual
Change-Id: Ie32c4d07e4c77a0460265a47501e332ae62e17e4
This commit is contained in:
Pingzhi Wang
2022-09-05 11:26:07 +02:00
committed by David Magno
parent 36a80cd8e6
commit 77ce80d6cb

View File

@@ -91,6 +91,7 @@ public class PreferredSimDialogFragment extends SimDialogFragment implements
if (dialog == null) {
Log.d(TAG, "Dialog is null.");
dismiss();
return;
}
final SubscriptionInfo info = getPreferredSubscription();