From 92ddd63f8221069d3a234d279fd6fca107eeeb3d Mon Sep 17 00:00:00 2001 From: salexdv Date: Sat, 12 Feb 2022 13:17:21 +0300 Subject: [PATCH] getMetadataStackForVar --- src/bsl_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsl_helper.js b/src/bsl_helper.js index 18621b6..619eb6f 100644 --- a/src/bsl_helper.js +++ b/src/bsl_helper.js @@ -2443,7 +2443,7 @@ class bslHelper { previous_ref: false, column: var_match.range.startColumn + varName.length }); - if (var_match.matches[1].indexOf('[') == 0) + if (var_match.matches[1] && var_match.matches[1].indexOf('[') == 0) stack.push({ var: engLang ? 'get' : 'получить', line: position.lineNumber,