mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
fix: FileStorageUtils: prevent NPE when checking encryption status
This can happen if the parent of a file has been deleted. Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
654cf8e124
commit
a9e4ba9abd
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ public final class FileStorageUtils {
|
|||
return true;
|
||||
}
|
||||
|
||||
while (!OCFile.ROOT_PATH.equals(file.getDecryptedRemotePath())) {
|
||||
while (file != null && !OCFile.ROOT_PATH.equals(file.getDecryptedRemotePath())) {
|
||||
if (file.isEncrypted()) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue