Add missing null check in onBackPressed for SearchView

pull/201/head
Alexander Bakker 6 years ago
parent 658946ff70
commit e099e2cacd

@ -473,7 +473,7 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
@Override
public void onBackPressed() {
if (!_searchView.isIconified() || _searchSubmitted ) {
if ((_searchView != null && !_searchView.isIconified()) || _searchSubmitted ) {
_searchSubmitted = false;
_entryListView.setSearchFilter(null);

Loading…
Cancel
Save