diff --git a/MPF/ComboBoxItems/Element.cs b/MPF/ComboBoxItems/Element.cs index 7e8d99d9..b0167bdf 100644 --- a/MPF/ComboBoxItems/Element.cs +++ b/MPF/ComboBoxItems/Element.cs @@ -19,7 +19,7 @@ namespace MPF /// Allow elements to be used as their internal enum type /// /// - public static implicit operator T? (Element item) => item.Data; + public static implicit operator T? (Element item) => item?.Data; /// public string Name => Converters.GetLongName(Data);