Merge "Do not scan a file which cannot be read"

This commit is contained in:
Marco Nelissen
2016-03-17 15:42:02 +00:00
committed by Gerrit Code Review

View File

@@ -1390,7 +1390,7 @@ public class MediaScanner
prescan(path, true); prescan(path, true);
File file = new File(path); File file = new File(path);
if (!file.exists()) { if (!file.exists() || !file.canRead()) {
return null; return null;
} }