Guard against crash in SummaryProvider

Change-Id: Ieeae65e50211618dbbee3d320cae614ac5926543
Fixes: 26310547
This commit is contained in:
Jason Monk
2016-04-11 10:21:28 -04:00
parent 6599660196
commit 0127eb07f4

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();
}