Add checks for nulls
This commit is contained in:
parent
e0e46582b3
commit
45fccc19cb
|
|
@ -34,7 +34,7 @@ namespace SyntaxVisitors
|
|||
if (!isInClass)
|
||||
return;
|
||||
|
||||
if (_method_name.meth_name.name.ToLower() == compiler_string_consts.deconstruct_method_name)
|
||||
if (_method_name?.meth_name?.name?.ToLower() == compiler_string_consts.deconstruct_method_name)
|
||||
deconstructCount++;
|
||||
|
||||
if (deconstructCount > 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue