diff --git a/src/Umbraco.Infrastructure/Services/ContentListViewServiceBase.cs b/src/Umbraco.Infrastructure/Services/ContentListViewServiceBase.cs index 7857051cb6..015d5c69c0 100644 --- a/src/Umbraco.Infrastructure/Services/ContentListViewServiceBase.cs +++ b/src/Umbraco.Infrastructure/Services/ContentListViewServiceBase.cs @@ -189,7 +189,7 @@ internal abstract class ContentListViewServiceBase> GetListViewConfigurationFromContentTypeAsync(TContentType? contentType) { - if (contentType?.ListView is null) + if (contentType is not null && contentType.ListView is null) { return Attempt.FailWithStatus(ContentCollectionOperationStatus.ContentNotCollection, null); }