The below statement is throwing null reference exception, as some of the values EducationalResourceForProblemID are null.
How do we check to make sure we execute the statement only when it is not nulls.
Where(Function
x.EducationalResourceForProblemID.Id = icdCode.Id)