Skip to content

Commit a2e2eb0

Browse files
committed
fix npe for WaitForInstanceCompletion
1 parent 292d30b commit a2e2eb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WebJobs.Extensions.DurableTask/LocalGrpcListener.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ await this.GetDurabilityProvider(context).ForceTerminateTaskOrchestrationAsync(
287287
timeout: Timeout.InfiniteTimeSpan,
288288
context.CancellationToken);
289289

290+
if (state == null)
291+
{
292+
return new P.GetInstanceResponse() { Exists = false };
293+
}
294+
290295
return CreateGetInstanceResponse(state, request);
291296
}
292297

0 commit comments

Comments
 (0)