Bug 4505185: fix NPE when file list is empty
Change-Id: Ia120f92f2d907cdfccde5824179ef2e1f0c0d6a6
This commit is contained in:
@@ -478,6 +478,7 @@ public class StorageMeasurement {
|
||||
File top = new File(mStorageVolume.getPath());
|
||||
mFileInfoForMisc = new ArrayList<FileInfo>();
|
||||
File[] files = top.listFiles();
|
||||
if (files == null) return;
|
||||
final int len = files.length;
|
||||
// Get sizes of all top level nodes except the ones already computed...
|
||||
long counter = 0;
|
||||
|
Reference in New Issue
Block a user