Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs =================================================================== diff -u -r09c09d852a24510f1c63db1065a50ebc20471f55 -r31a41fbf921e5ef9b61fbd1e1f07ae919c8aadca --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision 09c09d852a24510f1c63db1065a50ebc20471f55) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision 31a41fbf921e5ef9b61fbd1e1f07ae919c8aadca) @@ -377,6 +377,10 @@ /// The created . public static StrictContextMenuItem CreateRemoveAllChildrenFromGroupItem(CalculationGroup calculationGroup, IViewCommands viewCommands) { + if (viewCommands == null) + { + throw new ArgumentNullException("viewCommands"); + } var menuItem = new StrictContextMenuItem( Resources.CalculationGroup_RemoveAllChildrenFromGroup_Remove_all, Resources.CalculationGroup_RemoveAllChildrenFromGroup_Remove_all_Tooltip,