diff options
Diffstat (limited to 'server/src/matcher/hover.lua')
-rw-r--r-- | server/src/matcher/hover.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua index 9c06829d..900f9227 100644 --- a/server/src/matcher/hover.lua +++ b/server/src/matcher/hover.lua @@ -405,7 +405,7 @@ local function getValueHover(name, valueType, result, source, lib) local tp = result.type if tp == 'field' then - if result.parent.value.ENV then + if result.parent and result.parent.value and result.parent.value.ENV then tp = 'global' end end |