Merge "Guard against crash in SummaryProvider" into nyc-dev

This commit is contained in:
Jason Monk
2016-04-11 14:23:36 +00:00
committed by Android (Google) Code Review

View File

@@ -478,6 +478,9 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index
continue;
}
final File path = info.getPath();
if (path == null) {
continue;
}
privateUsedBytes += path.getTotalSpace() - path.getFreeSpace();
privateTotalBytes += path.getTotalSpace();
}