Skip to content

Commit de93f49

Browse files
committed
adding a crashfix
1 parent 5ee0daf commit de93f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
191191

192192
private fun getRegularItemsOf(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) {
193193
val items = ArrayList<FileDirItem>()
194+
val files = File(path).listFiles()?.filterNotNull()
194195
if (context == null) {
195196
callback(path, items)
196197
}
197198

198-
val files = File(path).listFiles()?.filterNotNull()
199199
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
200200
if (files != null) {
201201
for (file in files) {

0 commit comments

Comments
 (0)