summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/complete.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/utils/complete.lua')
-rw-r--r--xmake/modules/private/utils/complete.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/utils/complete.lua b/xmake/modules/private/utils/complete.lua
index 10c9e7d66..a50bc907a 100644
--- a/xmake/modules/private/utils/complete.lua
+++ b/xmake/modules/private/utils/complete.lua
@@ -43,6 +43,11 @@ function _print_candidate(is_complate, ...)
end
function _find_candidates(candidates, find)
+
+ if type(candidates) ~= 'table' then
+ return {}
+ end
+
local has_candidate = false
local results = table.new(#candidates, 0)