From b5c90c02bcbbfc68ad7e7de8fbf484cfeb866e5d Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Sun, 3 Sep 2023 17:53:36 -0500 Subject: [PATCH] resove conflicts --- .../Conversations/Services/ConversationStateService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStateService.cs b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStateService.cs index 2f87bca5..45866055 100644 --- a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStateService.cs +++ b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStateService.cs @@ -89,6 +89,11 @@ public class ConversationStateService : IConversationStateService, IDisposable public void Save() { + if (_conversationId == null) + { + return; + } + var states = new List(); foreach (var dic in _state)