Closed LaborJos closed 5 years ago
private static Cut AttributeArgument(Cut pc, CustomAttributeArgument argument)
{
var val = argument.Value;
if (val?.GetType().IsArray ?? false)
pc = pc.CreateArray(
argument.Type.GetElementType(),
((Array)val).Cast<object>().Select<object, PointCut>(v => il => il.Value(v)).ToArray()
);
else
{
pc = pc.Value(val);
if (val is CustomAttributeArgument next)
pc = pc.Cast(next.Type, argument.Type);
}
return pc;
}
A null check on the if statement will solve the problem.
Thank you for the report. I'll take a look asap
should be fixed in 2.2.5
Example
Build Log