Skip to content

Commit

Permalink
Crash with not accounts added and deep links fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fesave committed May 3, 2022
1 parent f716b0c commit 696c71d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,13 @@ class FileDisplayActivity : FileActivity(), FileFragment.ContainerActivity, OnEn
}
}

private fun getFileDiscovered(uri: Uri?): OCFile? = storageManager.getFileByPrivateLink(uri.toString())
private fun getFileDiscovered(uri: Uri?): OCFile? {
return if (storageManager != null) {
storageManager.getFileByPrivateLink(uri.toString())
} else {
null
}
}

private fun manageItem(file: OCFile) {
onBrowsedDownTo(file)
Expand Down

0 comments on commit 696c71d

Please sign in to comment.