Index: Core/Common/src/Core.Common.Gui/ContextMenu/GuiContextMenuItemFactory.cs =================================================================== diff -u -rbabec62dabf2b28efe0151887472b0756f59a6ce -rc8f394857dc6c0b303ce50fad61ec99d30d4d0ca --- Core/Common/src/Core.Common.Gui/ContextMenu/GuiContextMenuItemFactory.cs (.../GuiContextMenuItemFactory.cs) (revision babec62dabf2b28efe0151887472b0756f59a6ce) +++ Core/Common/src/Core.Common.Gui/ContextMenu/GuiContextMenuItemFactory.cs (.../GuiContextMenuItemFactory.cs) (revision c8f394857dc6c0b303ce50fad61ec99d30d4d0ca) @@ -195,9 +195,8 @@ throw new ArgumentNullException(nameof(image)); } - importInfos = importInfos != null - ? importInfos.Where(info => info.IsEnabled == null || info.IsEnabled(dataObject)).ToArray() - : importCommandHandler.GetSupportedImportInfos(dataObject); + importInfos = importInfos?.Where(info => info.IsEnabled == null || info.IsEnabled(dataObject)).ToArray() + ?? importCommandHandler.GetSupportedImportInfos(dataObject); var importItem = new ToolStripMenuItem(text) {