Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions core/src/main/java/com/google/adk/events/EventActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,14 @@ public Builder skipSummarization(boolean skipSummarization) {

@CanIgnoreReturnValue
@JsonProperty("stateDelta")
public Builder stateDelta(ConcurrentMap<String, Object> value) {
this.stateDelta = value;
public Builder stateDelta(@Nullable Map<String, Object> value) {
if (value == null) {
this.stateDelta = new ConcurrentHashMap<>();
} else if (value instanceof ConcurrentMap) {
this.stateDelta = (ConcurrentMap<String, Object>) value;
} else {
this.stateDelta = new ConcurrentHashMap<>(value);
}
return this;
}

Expand Down
Loading