diff options
| -rw-r--r-- | xmake/core/base/option.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua index 4fa61ad12..36ed4b657 100644 --- a/xmake/core/base/option.lua +++ b/xmake/core/base/option.lua @@ -446,7 +446,9 @@ function option.defaults(task) -- get the default options for the given task local defaults = {} - option.populate_defaults(taskmenu.options, defaults) + if taskmenu then + option.populate_defaults(taskmenu.options, defaults) + end return defaults end |
