This repository has been archived by the owner on Feb 23, 2021. It is now read-only.
Call to FirstOrDefault(Func<T, bool> predicate) when the predicate matches no result raises NullReferenceException. #7
Labels
bug
Something isn't working
See test case:
Invio.QueryProvider.MySql/test/Invio.QueryProvider.MySql.Test/MySqlQueryableTest.cs
Lines 91 to 93 in 03146ab
Expected behavior: FirstOrDefault should return
default(T)
It is unknown whether this issue is specific to the
FirstOrDefault
overload that takes a predicate, or would also occur when calling.Where(predicate).FirstOrDefault()
.The text was updated successfully, but these errors were encountered: