Skip to content

Commit 696c71d

Browse files
committed
Crash with not accounts added and deep links fixed
1 parent f716b0c commit 696c71d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

owncloudApp/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,13 @@ class FileDisplayActivity : FileActivity(), FileFragment.ContainerActivity, OnEn
16731673
}
16741674
}
16751675

1676-
private fun getFileDiscovered(uri: Uri?): OCFile? = storageManager.getFileByPrivateLink(uri.toString())
1676+
private fun getFileDiscovered(uri: Uri?): OCFile? {
1677+
return if (storageManager != null) {
1678+
storageManager.getFileByPrivateLink(uri.toString())
1679+
} else {
1680+
null
1681+
}
1682+
}
16771683

16781684
private fun manageItem(file: OCFile) {
16791685
onBrowsedDownTo(file)

0 commit comments

Comments
 (0)