Skip to content

Commit ff85ea1

Browse files
committed
Initialise with hashmap to avoid null pointer exception
Signed-off-by: Stuart Loxton <[email protected]>
1 parent bb22ff3 commit ff85ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/spring-ai-bedrock-converse/src/main/java/org/springframework/ai/bedrock/converse/BedrockChatOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class BedrockChatOptions implements ToolCallingChatOptions {
5454
private Double presencePenalty;
5555

5656
@JsonIgnore
57-
private Map<String, String> requestParameters;
57+
private Map<String, String> requestParameters = new HashMap<>();
5858

5959
@JsonProperty("stopSequences")
6060
private List<String> stopSequences;

0 commit comments

Comments
 (0)