var firstChildNode = methodNode.Body.ChildNodes().FirstOrDefault();
...throws a NullReferenceException when .Body is null, causing Fettle to quit.
.Body will be null when a method doesn't have a "normal" body. Fettle already handles this for expression-bodied methods and abstract methods, but not partial method declarations. E.g.
This line in
CoverageAnalyser.cs
:...throws a
NullReferenceException
when.Body
is null, causing Fettle to quit..Body
will be null when a method doesn't have a "normal" body. Fettle already handles this for expression-bodied methods and abstract methods, but not partial method declarations. E.g.