mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 08:58:30 +03:00
prevent NPE on absolutePath
This commit is contained in:
parent
31547ccb14
commit
caf9242e10
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ public class MediaProvider {
|
|||
cursorImages.close();
|
||||
|
||||
// only do further work if folder is not within the Nextcloud app itself
|
||||
if (!mediaFolder.absolutePath.startsWith(dataPath)) {
|
||||
if (mediaFolder.absolutePath != null && !mediaFolder.absolutePath.startsWith(dataPath)) {
|
||||
|
||||
// count images
|
||||
Cursor count = contentResolver.query(
|
||||
|
|
Loading…
Reference in a new issue