From 0c4ff5ae79cb7c7c9cd6ce5c3f6e77bd33ce0d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Mon, 20 Aug 2018 20:38:22 +0200 Subject: [PATCH] fix #1061 --- CodeCompletion/DomSyntaxTreeVisitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeCompletion/DomSyntaxTreeVisitor.cs b/CodeCompletion/DomSyntaxTreeVisitor.cs index 74a22f544..6c978fa9b 100644 --- a/CodeCompletion/DomSyntaxTreeVisitor.cs +++ b/CodeCompletion/DomSyntaxTreeVisitor.cs @@ -1500,7 +1500,7 @@ namespace CodeCompletion { ps = new ProcScope(meth_name, cur_scope); ps.head_loc = loc; - if (has_extensionmethod_attr(_function_header.proc_attributes.proc_attributes) && _function_header.parameters.params_list.Count > 0) + if (_function_header.proc_attributes != null && has_extensionmethod_attr(_function_header.proc_attributes.proc_attributes) && _function_header.parameters.params_list.Count > 0) { ps.is_extension = true; _function_header.parameters.params_list[0].vars_type.visit(this);