Commit b51b2c58 authored by Jason Monk's avatar Jason Monk Committed by The Android Automerger

Fix DataUsageSummary in no sim state.

Bug: 26676464
Change-Id: I7fad5240f1160a2eb38a7cff2ae2f1c9e40bc4d3
parent 5615e04c
......@@ -89,10 +89,10 @@ public class DataUsageSummary extends DataUsageBase implements Indexable {
if (hasMobileData) {
List<SubscriptionInfo> subscriptions =
services.mSubscriptionManager.getActiveSubscriptionInfoList();
if (subscriptions.size() == 0) {
if (subscriptions == null || subscriptions.size() == 0) {
addMobileSection(defaultSubId);
}
for (int i = 0; i < subscriptions.size(); i++) {
for (int i = 0; subscriptions != null && i < subscriptions.size(); i++) {
addMobileSection(subscriptions.get(i).getSubscriptionId());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment