Fix #669 App crashes when select folder

This commit is contained in:
stefan-niedermann 2020-01-08 16:57:42 +01:00
parent b295bc9050
commit b11ed4da98

View file

@ -388,7 +388,7 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap
navigationSelection = new Category(null, null);
} else if (itemFavorites.equals(item)) {
navigationSelection = new Category(null, true);
} else if (itemUncategorized.equals(item)) {
} else if (itemUncategorized != null && itemUncategorized.equals(item)) {
navigationSelection = new Category("", null);
} else {
navigationSelection = new Category(item.label, null);