Commit dd035992 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Fix an unlikely crash

parent 99ce9dbc
......@@ -115,7 +115,8 @@ public class BrowserAdapter extends ArrayAdapter<File>
File tmpFile = item;
while (!tmpFile.getPath().equals("/")) {
tmpFile = tmpFile.getParentFile();
dbManager.removeDir(tmpFile.getPath());
if (tmpFile != null)
dbManager.removeDir(tmpFile.getPath());
}
} else {
dbManager.removeDir(item.getPath());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment