summaryrefslogtreecommitdiff
path: root/script/core/noder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r--script/core/noder.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 24818c7a..b744b361 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -118,6 +118,9 @@ local function getMethodNode(source)
end
source._mnode = false
local func = guide.getParentFunction(source)
+ if not func then
+ return
+ end
if func.isGeneric then
return
end