Add checks for nulls

This commit is contained in:
Alexander Zakharenko 2018-05-25 18:02:25 +03:00
parent e0e46582b3
commit 45fccc19cb

View file

@ -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)