OOBE: fix NPE in choose data sim page
Change-Id: Ib6228e7cd223d29ac48200e9a50c0900d35f8a4e
This commit is contained in:
parent
3d884cef0e
commit
b2ceb1f8bb
@ -122,7 +122,8 @@ public class ChooseDataSimPage extends SetupPage {
|
||||
mPageView = (ViewGroup)mRootView.findViewById(R.id.page_view);
|
||||
mProgressBar = (ProgressBar) mRootView.findViewById(R.id.progress);
|
||||
List<SubscriptionInfo> subInfoRecords = mSubscriptionManager.getActiveSubscriptionInfoList();
|
||||
int simCount = subInfoRecords.size();
|
||||
int simCount =
|
||||
subInfoRecords != null ? subInfoRecords.size() : 0;
|
||||
mSubInfoRecords = new SparseArray<SubscriptionInfo>(simCount);
|
||||
for (SubscriptionInfo subInfoRecord : subInfoRecords) {
|
||||
mSubInfoRecords.put(subInfoRecord.getSimSlotIndex(), subInfoRecord);
|
||||
|
Loading…
Reference in New Issue
Block a user