Fix NullPointerException when deleting tokens

This commit is contained in:
Michael Schättgen 2019-03-27 00:47:39 +01:00
parent 52e4c5cd51
commit 554d7e17be

View file

@ -369,8 +369,10 @@ public class MainActivity extends AegisActivity implements EntryListView.Listene
Dialogs.showDeleteEntryDialog(this, (d, which) -> { Dialogs.showDeleteEntryDialog(this, (d, which) -> {
deleteEntry(entry); deleteEntry(entry);
// update the filter list if the group no longer exists // update the filter list if the group no longer exists
if (!_db.getGroups().contains(entry.getGroup())) { if (entry.getGroup() != null) {
updateGroupFilterMenu(); if (!_db.getGroups().contains(entry.getGroup())) {
updateGroupFilterMenu();
}
} }
}); });
}); });