diff options
Diffstat (limited to 'script-beta/core/hover/name.lua')
-rw-r--r-- | script-beta/core/hover/name.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index 7b8cf449..917bf96d 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -29,9 +29,10 @@ end local function asLibrary(source, caller) local p - if caller.type == 'method' - or caller.type == 'getmethod' - or caller.type == 'setmethod' then + if caller + and (caller.type == 'method' + or caller.type == 'getmethod' + or caller.type == 'setmethod') then if source.parent then for _, parent in ipairs(source.parent) do if parent.type == 'object' then |