From 37d96db979fc4e3de554fe19f85d216fb9c70843 Mon Sep 17 00:00:00 2001 From: Anna Gevel Date: Wed, 22 Nov 2023 12:16:55 +0100 Subject: [PATCH] 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 --- .../PropertyEditors/NoopPropertyIndexValueFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/PropertyEditors/NoopPropertyIndexValueFactory.cs b/src/Umbraco.Core/PropertyEditors/NoopPropertyIndexValueFactory.cs index 004138e370..a9fa060c74 100644 --- a/src/Umbraco.Core/PropertyEditors/NoopPropertyIndexValueFactory.cs +++ b/src/Umbraco.Core/PropertyEditors/NoopPropertyIndexValueFactory.cs @@ -18,5 +18,5 @@ public class NoopPropertyIndexValueFactory : IPropertyIndexValueFactory [Obsolete("Use the overload with the availableCultures parameter instead, scheduled for removal in v14")] public IEnumerable>> GetIndexValues(IProperty property, string? culture, string? segment, bool published) - => GetIndexValues(property, culture, segment, published); + => GetIndexValues(property, culture, segment, published, Enumerable.Empty()); }