catch exceptions when retrieving uri file extension

This commit is contained in:
Daniel Gultsch 2016-06-24 13:35:39 +02:00
parent 4d5e0c291e
commit d2ca0c7fe8
1 changed files with 2 additions and 0 deletions

View File

@ -268,6 +268,8 @@ public class FileBackend {
if (cursor.moveToFirst()) {
filename = cursor.getString(0);
}
} catch (Exception e) {
filename = null;
} finally {
cursor.close();
}