Skip to content

Commit

Permalink
Fix a bug with SelectExpandQueryOption.ApplyTo accessing possibly uni…
Browse files Browse the repository at this point in the history
…nitialized backing field
  • Loading branch information
KevinNoffc authored and xuzhg committed Feb 8, 2022
1 parent 2fee8a5 commit 00bc0af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public IQueryable ApplyTo(IQueryable queryable, ODataQuerySettings settings)
binderContext.AddComputedProperties(Compute.ComputeClause.ComputedItems);
}

return binder.ApplyBind(queryable, _selectExpandClause, binderContext);
return binder.ApplyBind(queryable, SelectExpandClause, binderContext);
}

/// <summary>
Expand Down Expand Up @@ -262,7 +262,7 @@ public object ApplyTo(object entity, ODataQuerySettings settings)
binderContext.AddComputedProperties(Compute.ComputeClause.ComputedItems);
}

return binder.ApplyBind(entity, _selectExpandClause, binderContext);
return binder.ApplyBind(entity, SelectExpandClause, binderContext);
}

/// <summary>
Expand Down

0 comments on commit 00bc0af

Please sign in to comment.