Split BRep in RhinoCommon gives extra null entry

I’m on Rhino 7.4 and I find that cutting the box in the attached file with the planes using the command code below produces an extra null item in the split result array, and that two of the pieces are joined together. In Rhino 6 this does not happen.

public Result RunCommand(RhinoDoc doc, RunMode mode)
  Result res = RhinoGet.GetOneObject("Select to split", false, ObjectType.Brep, out var toSPlit);
  if (res != Result.Success)
    return res;


  res = RhinoGet.GetMultipleObjects("Select cutters", false, ObjectType.Brep, out var cutters);
  if (res != Result.Success)
    return res;

  Brep b = toSPlit.Brep();
  Brep[] c = cutters.Select(r => r.Brep()).ToArray();

  var splitted = b.Split(c, 0.001);
  if (splitted == null || !splitted.Any())
    RhinoApp.WriteLine("Split failed");
  if (splitted.Any(r => r == null))
    RhinoApp.WriteLine("Split result contains null");

  foreach (var item in splitted.Where(i => null != i))

  return Result.Success;

split-null.3dm (49.8 KB)

I though this was fixed. But perhaps I am confused.


– Dale