diff --git a/RGB.NET.Layout/LayoutExtension.cs b/RGB.NET.Layout/LayoutExtension.cs index 915380b1..0426e3b7 100644 --- a/RGB.NET.Layout/LayoutExtension.cs +++ b/RGB.NET.Layout/LayoutExtension.cs @@ -73,7 +73,7 @@ public static void Save(this IDeviceLayout layout, string targetFile) public static void Save(this IDeviceLayout layout, Stream stream) { Type? customDataType = layout.CustomData?.GetType(); - Type? customLedDataType = layout.Leds.FirstOrDefault(x => x.CustomData != null)?.GetType(); + Type? customLedDataType = layout.Leds.FirstOrDefault(x => x.CustomData != null)?.CustomData?.GetType(); Type[] customTypes; if ((customDataType != null) && (customLedDataType != null))