diff --git a/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs b/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs index 3d14a32a..c10ffd8d 100644 --- a/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs +++ b/src/Infrastructure/BotSharp.Abstraction/SideCar/Attributes/SideCarAttribute.cs @@ -93,7 +93,7 @@ public class SideCarAttribute : AsyncMoAttribute await task; if (method.ReturnType.IsGenericType && method.ReturnType.GetGenericTypeDefinition() == typeof(Task<>)) { - value = task?.GetType().GetProperty("Result")?.GetValue(task); + value = task?.GetType()?.GetProperty("Result")?.GetValue(task); } }