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

am: 3095c77

* commit '3095c77d5b28839ff6e757d6c08afd1bd2cd7afa':
  Guard against crash in SummaryProvider

Change-Id: I759042100f3b4f21b9056d83b817634f066fae93
This commit is contained in:
Jason Monk
2016-04-11 14:26:50 +00:00
committed by android-build-merger

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