From 7dd78a5259645448a7a8f0dea24dbcc9c37b3ec4 Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sat, 29 Dec 2018 18:02:18 -0600 Subject: [PATCH] fix context bug for the first conversation. --- BotSharp.Core/BotSharp.Core.csproj | 2 +- BotSharp.Core/ContextStorage/ContextStorageInFile.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BotSharp.Core/BotSharp.Core.csproj b/BotSharp.Core/BotSharp.Core.csproj index dd3a0c53..e99a03e8 100644 --- a/BotSharp.Core/BotSharp.Core.csproj +++ b/BotSharp.Core/BotSharp.Core.csproj @@ -81,7 +81,7 @@ Support dialogue status tracking. - + diff --git a/BotSharp.Core/ContextStorage/ContextStorageInFile.cs b/BotSharp.Core/ContextStorage/ContextStorageInFile.cs index 39d0b9ff..313415c3 100644 --- a/BotSharp.Core/ContextStorage/ContextStorageInFile.cs +++ b/BotSharp.Core/ContextStorage/ContextStorageInFile.cs @@ -38,7 +38,7 @@ namespace BotSharp.Core.ContextStorage } else { - return default(T[]); + return new T[0]; } }