diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-08 16:06:03 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-08 16:06:03 +0800 |
commit | 2bdcabc48557e6b968df7ae88cafe8d318c44a1d (patch) | |
tree | 9e927625149ae6c67e1a9b28d8f157ee8cf94df6 /server/src/emmy | |
parent | 04d1af4aa0b26e7ddc28a5d8c056b23097c9175b (diff) | |
download | lua-language-server-2bdcabc48557e6b968df7ae88cafe8d318c44a1d.zip |
一处绑定判空
Diffstat (limited to 'server/src/emmy')
-rw-r--r-- | server/src/emmy/field.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/emmy/field.lua b/server/src/emmy/field.lua index d7dfbe98..f9e9cbf6 100644 --- a/server/src/emmy/field.lua +++ b/server/src/emmy/field.lua @@ -25,6 +25,11 @@ function mt:bindValue(value) if value then self._bindValue = value else + if self._bindValue then + if not self._bindValue:getSource() then + self._bindValue = nil + end + end return self._bindValue end end |