Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit a79b01b

Browse files
committed
add missing null check
1 parent 83dafb8 commit a79b01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/LinqToDB.EntityFrameworkCore/LinqToDBForEFToolsImplDefault.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ TransformInfo LocalTransform(Expression e)
929929

930930
if (typeof(IQueryable<>).IsSameOrParentOf(methodCall.Type) && methodCall.Type.Assembly != typeof(LinqExtensions).Assembly)
931931
{
932-
if (dc.MappingSchema.GetAttribute<ExpressionMethodAttribute>(methodCall.Type, methodCall.Method) == null
932+
if ((dc == null || dc.MappingSchema.GetAttribute<ExpressionMethodAttribute>(methodCall.Type, methodCall.Method) == null)
933933
&& null == methodCall.Find(nonEvaluatableParameters,
934934
(c, t) => t.NodeType == ExpressionType.Parameter && c.Contains(t) || t.NodeType == ExpressionType.Extension))
935935
{

0 commit comments

Comments
 (0)