Fixed StackOverflow exception when using NoopPropertyIndexValueFactory

Removed recursive call from the GetIndexValues method of NoopPropertyIndexValueFactory for backward compatibility and alignment with other property index value factory classes
This commit is contained in:
Anna Gevel
2023-11-22 12:16:55 +01:00
committed by Michael Latouche
parent 9ed2e48ff4
commit 37d96db979

View File

@@ -18,5 +18,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>());
}