Skip to content

Commit

Permalink
Fixed StackOverflow exception when using NoopPropertyIndexValueFactory
Browse files Browse the repository at this point in the history
Removed recursive call from the GetIndexValues method of NoopPropertyIndexValueFactory for backward compatibility and alignment with other property index value factory classes
  • Loading branch information
geann committed Nov 22, 2023
1 parent d34be8c commit 7e3326a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ public class NoopPropertyIndexValueFactory : IPropertyIndexValueFactory

[Obsolete("Use the overload with the availableCultures parameter instead, scheduled for removal in v14")]
public IEnumerable<KeyValuePair<string, IEnumerable<object?>>> GetIndexValues(IProperty property, string? culture, string? segment, bool published)
=> GetIndexValues(property, culture, segment, published);
=> GetIndexValues(property, culture, segment, published, Enumerable.Empty<string>());
}

0 comments on commit 7e3326a

Please sign in to comment.