Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs =================================================================== diff -u -r72fae487f4d6debd3cec5157de8796827bf27a0c -rc50d495de60db188ded1147be4d6d64d7ea29a2a --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision 72fae487f4d6debd3cec5157de8796827bf27a0c) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision c50d495de60db188ded1147be4d6d64d7ea29a2a) @@ -367,7 +367,7 @@ private static void SetStateWithEnableFunction(T context, Func enableFunction, StrictContextMenuItem menuItem) { - string validationText = enableFunction != null ? enableFunction(context) : null; + string validationText = enableFunction?.Invoke(context); if (!string.IsNullOrEmpty(validationText)) { menuItem.Enabled = false;