|
@@ -171,7 +171,7 @@ namespace TEAMModelOS.SDK.Models.Service
|
|
|
try
|
|
|
{
|
|
|
int year = DateTimeOffset.UtcNow.Year;
|
|
|
- var clientSummaryList = lessonBase.report.clientSummaryList.Where(x => x.groupTaskCompleteCount != 0 || x.groupScore != 0 || x.score != 0 || x.tnteractScore != 0 || x.taskCompleteCount != 0);
|
|
|
+ var clientSummaryList = lessonBase?.report?.clientSummaryList?.Where(x => x.groupTaskCompleteCount != 0 || x.groupScore != 0 || x.score != 0 || x.tnteractScore != 0 || x.taskCompleteCount != 0);
|
|
|
IEnumerable<LessonStudent> students = new List<LessonStudent>();
|
|
|
if (clientSummaryList.Any())
|
|
|
{
|