aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2023-10-24 11:22:44 +0200
committerGitHub <noreply@github.com>2023-10-24 11:22:44 +0200
commit99f734ab9d32180223a40eea616e7d79c9410f66 (patch)
tree27233a1a2267a207982b2e5f2c859874d02956da
parent7101bfe56a6b27e3c42c3d4cb4f0b33a1cfe5e87 (diff)
parentf52cab794a5c43e2e8f83ab990bd24b840f360c8 (diff)
Merge pull request #29074 from vespa-engine/freva/assign-copy
Assign copied list
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java
index f28b21228d9..897e0be2d22 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java
@@ -37,7 +37,7 @@ public record Notification(Instant at, Notification.Type type, Notification.Leve
Objects.requireNonNull(level, "level cannot be null");
Objects.requireNonNull(source, "source cannot be null");
Objects.requireNonNull(title, "title cannot be null");
- List.copyOf(Objects.requireNonNull(messages, "messages cannot be null"));
+ messages = List.copyOf(Objects.requireNonNull(messages, "messages cannot be null"));
// Allowing empty title temporarily until all notifications have a title
// if (title.isBlank()) throw new IllegalArgumentException("title cannot be empty");