minor change

This commit is contained in:
Jicheng Lu 2025-01-25 03:59:23 -06:00
parent b927f17ce3
commit eb7bddd5e8

View file

@ -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);
}
}