diff options
author | emancebo <emancebo@cyngn.com> | 2015-05-15 15:09:58 -0700 |
---|---|---|
committer | Ed Mancebo <emancebo@cyngn.com> | 2015-05-18 16:25:14 +0000 |
commit | b2ceb1f8bb6acd8dc861da18e7a26cddebcbc035 (patch) | |
tree | f27e202ae93f8e7366f0b1356ede1bc945509431 /src/com/cyanogenmod/setupwizard/setup | |
parent | 3d884cef0ebd4e67389d412800ddc06e9346cf41 (diff) | |
download | packages_apps_SetupWizard-b2ceb1f8bb6acd8dc861da18e7a26cddebcbc035.zip packages_apps_SetupWizard-b2ceb1f8bb6acd8dc861da18e7a26cddebcbc035.tar.gz packages_apps_SetupWizard-b2ceb1f8bb6acd8dc861da18e7a26cddebcbc035.tar.bz2 |
OOBE: fix NPE in choose data sim page
Change-Id: Ib6228e7cd223d29ac48200e9a50c0900d35f8a4e
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java b/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java index de8c8e3..3950d74 100644 --- a/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java @@ -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); |