Skip to content

Commit

Permalink
fix NPE when no custom_headers in properties
Browse files Browse the repository at this point in the history
  • Loading branch information
max402 committed May 16, 2024
1 parent d6936db commit b13904a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Configuration
Expand Down Expand Up @@ -66,6 +67,6 @@ public SecretServerClient secretServerClient(
@Component
@ConfigurationProperties(prefix = "sts.secret-server-client")
public static class CustomHeadersProperties {
private Map<String, String> customHeaders;
private Map<String, String> customHeaders = new HashMap<>();
}
}

0 comments on commit b13904a

Please sign in to comment.