Skip to content

Commit

Permalink
fix regression issue. (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElizabethOkerio committed Apr 18, 2023
1 parent 68a4037 commit 07cdc77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1743,9 +1743,9 @@ private IEnumerable<KeyValuePair<IEdmStructuralProperty, PathSelectItem>> GetPro
{
if (changedProperties == null || changedProperties.Contains(complexProperty.Key.Name))
{
IEdmTypeReference type = complexProperty.Key == null ? null : complexProperty.Key.Type;
IEdmTypeReference type = complexProperty.Key?.Type;

if (type != null && resourceContext.EdmModel != null)
if (type != null && type.IsStructured() && resourceContext.EdmModel != null)
{
Type clrType = EdmLibHelpers.GetClrType(type.AsStructured(), resourceContext.EdmModel);

Expand Down

0 comments on commit 07cdc77

Please sign in to comment.