Fixed NullReferenceException when flow disappears in between locks
This commit is contained in:
parent
aded39981c
commit
c2a6b4b577
@ -161,7 +161,7 @@ namespace Tapeti.Flow.Default
|
||||
if (flowLock == null)
|
||||
throw new ObjectDisposedException("FlowStateLock");
|
||||
|
||||
return Task.FromResult(cachedFlowState.FlowState?.Clone());
|
||||
return Task.FromResult(cachedFlowState?.FlowState?.Clone());
|
||||
}
|
||||
|
||||
public async Task StoreFlowState(FlowState newFlowState, bool persistent)
|
||||
|
Loading…
Reference in New Issue
Block a user