Fixed loader templateConfig nil pointer crash
@@ -377,7 +377,11 @@ func (r *Runner) RunEnumeration() error {
}
executerOpts.WorkflowLoader = workflowLoader
- store, err := loader.New(loader.NewConfig(r.options, r.templatesConfig, r.catalog, executerOpts))
+ templateConfig := r.templatesConfig
+ if templateConfig == nil {
+ templateConfig = &config.Config{}
+ }
+ store, err := loader.New(loader.NewConfig(r.options, templateConfig, r.catalog, executerOpts))
if err != nil {
return errors.Wrap(err, "could not load templates from config")
}
