fixing a null context crash

This commit is contained in:
tibbi 2018-09-10 17:42:49 +02:00
parent fc4ff11dc6
commit 68f1cbeb7f

View File

@ -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