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);