diff options
| -rw-r--r-- | xmake/core/base/interpreter.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
