summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/noder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index dd6ba22b..0ae48965 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -264,7 +264,7 @@ local function getNodeKey(source)
return getNodeKey(methodNode)
end
local key, node = getKey(source)
- if guide.isGlobal(source) then
+ if key and guide.isGlobal(source) then
return 'g:' .. key, nil
end
return key, node