Silently ignore missing habits

This commit is contained in:
2017-06-04 17:07:07 -04:00
parent fa5d6f8fee
commit 0a375ded96

View File

@@ -270,9 +270,7 @@ public class SQLiteHabitList extends HabitList
for (HabitRecord record : recordList)
{
Habit habit = getById(record.getId());
if (habit == null)
throw new RuntimeException("habit not in database");
if (habit == null) continue;
if (!filter.matches(habit)) continue;
habits.add(habit);
}