diff options
-rw-r--r-- | src/com/android/settings/sim/SimDialogActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/sim/SimDialogActivity.java b/src/com/android/settings/sim/SimDialogActivity.java index 63124d7..2c073e6 100644 --- a/src/com/android/settings/sim/SimDialogActivity.java +++ b/src/com/android/settings/sim/SimDialogActivity.java @@ -178,7 +178,8 @@ public class SimDialogActivity extends Activity { sir = subInfoList.get(value); SubscriptionInfo defaultSub = subscriptionManager .getDefaultDataSubscriptionInfo(); - if (defaultSub.getSubscriptionId() != sir.getSubscriptionId()) { + if (defaultSub == null || defaultSub.getSubscriptionId() + != sir.getSubscriptionId()) { setDefaultDataSubId(context, sir.getSubscriptionId()); } break; |