fix kafka topic empty config issues
It only appears when topics are without config are automatically created using the for_each loop.
@@ -293,6 +293,10 @@ func getKafkaTopicConfig(d *schema.ResourceData) aiven.KafkaTopicConfig {
return aiven.KafkaTopicConfig{}
}
+ if d.Get("config").([]interface{})[0] == nil {
+ return aiven.KafkaTopicConfig{}
+ }
+
configRaw := d.Get("config").([]interface{})[0].(map[string]interface{})
return aiven.KafkaTopicConfig{
