add some null checks to filtering contacts adapter entries at search

This commit is contained in:
tibbi 2018-01-31 18:04:26 +01:00
parent ebd9399861
commit 2c5daff95c
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
} }
fun onSearchOpened() { fun onSearchOpened() {
contactsIgnoringSearch = (fragment_list.adapter as? ContactsAdapter)?.contactItems as ArrayList contactsIgnoringSearch = (fragment_list?.adapter as? ContactsAdapter)?.contactItems as? ArrayList ?: ArrayList()
} }
fun onSearchClosed() { fun onSearchClosed() {