From 117eeabc9c8274da1d5692d4a92a1b7d00515f49 Mon Sep 17 00:00:00 2001 From: extio-de Date: Sat, 14 Mar 2026 21:16:56 +0100 Subject: [PATCH] fix: Ensure thread-safe access to conversation list in getConversation method --- src/main/java/de/extio/lmlib/client/Conversation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/extio/lmlib/client/Conversation.java b/src/main/java/de/extio/lmlib/client/Conversation.java index 7551b66..a3957ad 100755 --- a/src/main/java/de/extio/lmlib/client/Conversation.java +++ b/src/main/java/de/extio/lmlib/client/Conversation.java @@ -65,7 +65,9 @@ public final class Conversation { } public List getConversation() { - return Collections.unmodifiableList(this.conversation); + synchronized (this.conversation) { + return Collections.unmodifiableList(this.conversation); + } } @Override