Database: Fix null error

This commit is contained in:
Elias Projahn 2020-03-30 17:33:36 +02:00
parent 9f2c86db78
commit e2167143ed

View file

@ -96,9 +96,9 @@ class Database extends _$Database {
for (final model in models) {
await into(performances).insert(Performance(
recording: recording.id,
person: model.person.id,
ensemble: model.ensemble.id,
role: model.role.id,
person: model.person?.id,
ensemble: model.ensemble?.id,
role: model.role?.id,
));
}
});