diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-14 14:58:15 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-14 14:58:15 +0800 |
commit | 18ae98ec2c658b6ea13046132d314604a8ad7917 (patch) | |
tree | ff477a74134d7843dc13b6c6c7dc559cfd84828e /script | |
parent | 28d67699c4eb747d6b287c7ac67262b8b19ee73b (diff) | |
download | lua-language-server-18ae98ec2c658b6ea13046132d314604a8ad7917.zip |
check nil
Diffstat (limited to 'script')
-rw-r--r-- | script/core/noder.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 1f8005e3..54fc484c 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1264,6 +1264,9 @@ end ---@param root parser.guide.object ---@param id string function m.removeID(root, id) + if not id then + return + end root = guide.getRoot(root) local noders = root._noders noders[id] = nil |