fix(controller): panic on nil application properties
@@ -100,6 +100,10 @@ func setErrorHandlerConfiguration(errorHandlerBinding *bindings.Binding, errorHa
if err != nil {
return err
}
+ // initialize map if not yet initialized
+ if errorHandlerBinding.ApplicationProperties == nil {
+ errorHandlerBinding.ApplicationProperties = make(map[string]string)
+ }
for key, value := range properties {
errorHandlerBinding.ApplicationProperties[key] = fmt.Sprintf("%v", value)
}
