From 2640bc9f82edc9e8722f3f0264d8c3e26a9bcea6 Mon Sep 17 00:00:00 2001 From: Jan Martiska Date: Tue, 17 Oct 2023 12:09:30 +0200 Subject: [PATCH] Prevent null dynamicHeaders --- .../graphql/client/impl/TypesafeClientConfigurationReader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java b/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java index da889faed..89c886b28 100644 --- a/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java +++ b/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java @@ -2,6 +2,7 @@ import static io.smallrye.graphql.client.impl.GraphQLClientsConfiguration.getConfiguredHeaders; +import java.util.HashMap; import java.util.Optional; import org.eclipse.microprofile.config.Config; @@ -44,6 +45,7 @@ private void buildUrl() { private void buildHeaders() { clientConfiguration.setHeaders(getConfiguredHeaders(configKey, mpConfig)); + clientConfiguration.setDynamicHeaders(new HashMap<>()); } GraphQLClientConfiguration getClientConfiguration() {