Silently ignore missing habits
This commit is contained in:
parent
fa5d6f8fee
commit
0a375ded96
@ -270,9 +270,7 @@ public class SQLiteHabitList extends HabitList
|
|||||||
for (HabitRecord record : recordList)
|
for (HabitRecord record : recordList)
|
||||||
{
|
{
|
||||||
Habit habit = getById(record.getId());
|
Habit habit = getById(record.getId());
|
||||||
if (habit == null)
|
if (habit == null) continue;
|
||||||
throw new RuntimeException("habit not in database");
|
|
||||||
|
|
||||||
if (!filter.matches(habit)) continue;
|
if (!filter.matches(habit)) continue;
|
||||||
habits.add(habit);
|
habits.add(habit);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user