summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/core/hover/name.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/hover/name.lua b/server/src/core/hover/name.lua
index 4419e4b5..bd35f946 100644
--- a/server/src/core/hover/name.lua
+++ b/server/src/core/hover/name.lua
@@ -5,7 +5,7 @@ return function (source)
end
local func = value:getFunction()
local declarat
- if func then
+ if func and func.source then
declarat = func.source.name
else
declarat = source