Skip to content

Commit

Permalink
fix when programme type is null (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevJoy authored Nov 3, 2023
1 parent dee557f commit f095158
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,20 @@ await Task.WhenAll(
}
else
{
switch (itt.dfeta_Result)
if (itt.dfeta_ProgrammeType.HasValue)
{
case dfeta_ITTResult.InTraining:
case dfeta_ITTResult.Withdrawn:
case dfeta_ITTResult.Deferred:
case dfeta_ITTResult.Pass:
case dfeta_ITTResult.Fail:
{
matching.Add(itt);
break;
}
switch (itt.dfeta_Result)
{
case dfeta_ITTResult.InTraining:
case dfeta_ITTResult.Withdrawn:
case dfeta_ITTResult.Deferred:
case dfeta_ITTResult.Pass:
case dfeta_ITTResult.Fail:
{
matching.Add(itt);
break;
}
}
}
}
}
Expand Down

0 comments on commit f095158

Please sign in to comment.