From c7ed168c44fb837e65928069dea67026e2527623 Mon Sep 17 00:00:00 2001 From: Bruno Mendes <61701401+bdmendes@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:30:49 +0100 Subject: [PATCH] Allow null course unit year --- uni/lib/model/entities/course_units/course_unit.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uni/lib/model/entities/course_units/course_unit.dart b/uni/lib/model/entities/course_units/course_unit.dart index 25bf40338..cf8a0193d 100644 --- a/uni/lib/model/entities/course_units/course_unit.dart +++ b/uni/lib/model/entities/course_units/course_unit.dart @@ -45,7 +45,7 @@ class CourseUnit { code: data['ucurr_codigo'] as String, abbreviation: data['ucurr_sigla'] as String, name: data['ucurr_nome'] as String, - curricularYear: data['ano'] as int, + curricularYear: data['ano'] as int?, occurrId: data['ocorr_id'] as int, semesterCode: data['per_codigo'] as String?, semesterName: data['per_nome'] as String?,