diff --git a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java index 61ddbfde3ce30..1bedf2d4dcc6b 100644 --- a/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java +++ b/extensions/kafka-client/runtime/src/main/java/io/quarkus/kafka/client/runtime/KafkaRuntimeConfigProducer.java @@ -38,7 +38,7 @@ public Map createKafkaRuntimeConfig(Config config, ApplicationCo result.put(effectivePropertyName, value); } - if (!result.containsKey(GROUP_ID) && app.name.isPresent()) { + if (!result.isEmpty() && !result.containsKey(GROUP_ID) && app.name.isPresent()) { result.put(GROUP_ID, app.name.get()); }