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.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 89be1e62..ffd51bfd 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1080,7 +1080,9 @@ files.watch(function (ev, uri)
uri = files.asKey(uri)
if ev == 'update' then
local state = files.getState(uri)
- m.compileNodes(state.ast)
+ if state then
+ m.compileNodes(state.ast)
+ end
end
if ev == 'remove' then
collector.dropUri(uri)