forked from organicmaps/organicmaps
Merge pull request #3280 from trashkalmar/crash-on-change-storage
[android] fix: Crash while changing storage.
This commit is contained in:
commit
78377f4576
1 changed files with 5 additions and 1 deletions
|
@ -248,7 +248,11 @@ final class StorageUtils
|
|||
*/
|
||||
static void listFilesRecursively(File dir, String prefix, FilenameFilter filter, ArrayList<String> relPaths)
|
||||
{
|
||||
for (File file : dir.listFiles())
|
||||
File[] list = dir.listFiles();
|
||||
if (list == null)
|
||||
return;
|
||||
|
||||
for (File file : list)
|
||||
{
|
||||
if (file.isDirectory())
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue