diff --git a/DUI3-DX/Sdk/Speckle.Converters.Common.DependencyInjection/ToHost/ConverterWithFallback.cs b/DUI3-DX/Sdk/Speckle.Converters.Common.DependencyInjection/ToHost/ConverterWithFallback.cs index 9d972cdd99..1d143ef8f9 100644 --- a/DUI3-DX/Sdk/Speckle.Converters.Common.DependencyInjection/ToHost/ConverterWithFallback.cs +++ b/DUI3-DX/Sdk/Speckle.Converters.Common.DependencyInjection/ToHost/ConverterWithFallback.cs @@ -1,4 +1,5 @@ -using Speckle.Converters.Common.Objects; +using System.Collections; +using Speckle.Converters.Common.Objects; using Speckle.Core.Models; using Speckle.Core.Models.Extensions; @@ -49,6 +50,10 @@ public object Convert(Base target) var displayValue = target.TryGetDisplayValue(); if (displayValue != null) { + if (displayValue is IList && !displayValue.Any()) + { + throw new NotSupportedException($"No display value found for {type}"); + } return FallbackToDisplayValue(displayValue); }