Guard against crash in SummaryProvider
Change-Id: Ieeae65e50211618dbbee3d320cae614ac5926543 Fixes: 26310547
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user