mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-03-03 05:56:21 -05: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()
|
||||
if (context == null) {
|
||||
callback(path, items)
|
||||
return
|
||||
}
|
||||
|
||||
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
|
||||
|
||||
Reference in New Issue
Block a user