Skip to content

Commit ef6415a

Browse files
committed
fix: Check for empty notification ID in InMemoryPushNotificationConfigStore#setInfo
1 parent a953f59 commit ef6415a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server-common/src/main/java/io/a2a/server/tasks/InMemoryPushNotificationConfigStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public InMemoryPushNotificationConfigStore() {
3030
public PushNotificationConfig setInfo(String taskId, PushNotificationConfig notificationConfig) {
3131
List<PushNotificationConfig> notificationConfigList = pushNotificationInfos.getOrDefault(taskId, new ArrayList<>());
3232
PushNotificationConfig.Builder builder = new PushNotificationConfig.Builder(notificationConfig);
33-
if (notificationConfig.id() == null) {
33+
if (notificationConfig.id() == null || notificationConfig.id().isEmpty()) {
3434
builder.id(taskId);
3535
}
3636
notificationConfig = builder.build();

0 commit comments

Comments
 (0)