Skip to content

Commit da98a54

Browse files
committed
adding a crashfix
1 parent 6d2b939 commit da98a54

File tree

1 file changed

+4
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
267267
fun searchQueryChanged(text: String) {
268268
val searchText = text.trim()
269269
Thread {
270+
if (context == null) {
271+
return@Thread
272+
}
273+
270274
when {
271275
searchText.isEmpty() -> activity?.runOnUiThread {
272276
mView.apply {

0 commit comments

Comments
 (0)