Skip to content

Commit 27e05c3

Browse files
author
Kapil Borle
authored
Fix NRE in UseSupportsShouldProcess rule (#762)
1 parent c58dafd commit 27e05c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/UseSupportsShouldProcess.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private List<DiagnosticRecord> FindViolations()
6565
int whatIfIndex, confirmIndex;
6666
ParameterAst whatIfParamAst, confirmParamAst;
6767
ParamBlockAst paramBlockAst;
68-
var parameterAsts = functionDefinitionAst.GetParameterAsts(out paramBlockAst).ToArray();
68+
var parameterAsts = functionDefinitionAst.GetParameterAsts(out paramBlockAst)?.ToArray();
6969
if (parameterAsts == null)
7070
{
7171
continue;

0 commit comments

Comments
 (0)