mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
fixing a null context crash
This commit is contained in:
@ -194,6 +194,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||||||
val files = File(path).listFiles()?.filterNotNull()
|
val files = File(path).listFiles()?.filterNotNull()
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
callback(path, items)
|
callback(path, items)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
|
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
|
||||||
|
Reference in New Issue
Block a user