From 9c74761cb07a83bed1fb358dbbf3a87b32322c3b Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 13 Feb 2019 00:19:49 +0800 Subject: fix interpreter bug --- xmake/core/base/interpreter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index d2052cf00..458d71b30 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -530,7 +530,7 @@ function interpreter:_make(scope_kind, remove_repeat, enable_filter) -- get the root results of the given scope kind, e.g. root.target local results = {} - if scope_kind:startswith("root.") then + if scope_kind and scope_kind:startswith("root.") then local root_scope = scopes._ROOT[scope_kind:sub(6)] if root_scope then -- cgit v1.3.1