From e099e2cacd27552c4ee227ae0d93d02a4e1b0f21 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Tue, 10 Sep 2019 00:14:42 +0200 Subject: [PATCH] Add missing null check in onBackPressed for SearchView --- .../main/java/com/beemdevelopment/aegis/ui/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/MainActivity.java b/app/src/main/java/com/beemdevelopment/aegis/ui/MainActivity.java index 9bf0c8f0..2f436102 100644 --- a/app/src/main/java/com/beemdevelopment/aegis/ui/MainActivity.java +++ b/app/src/main/java/com/beemdevelopment/aegis/ui/MainActivity.java @@ -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);