1
0
mirror of synced 2024-11-22 09:13:51 +00:00

Fixed NullReferenceException when flow disappears in between locks

This commit is contained in:
Mark van Renswoude 2021-09-02 11:29:32 +02:00
parent aded39981c
commit c2a6b4b577

View File

@ -161,7 +161,7 @@ namespace Tapeti.Flow.Default
if (flowLock == null) if (flowLock == null)
throw new ObjectDisposedException("FlowStateLock"); throw new ObjectDisposedException("FlowStateLock");
return Task.FromResult(cachedFlowState.FlowState?.Clone()); return Task.FromResult(cachedFlowState?.FlowState?.Clone());
} }
public async Task StoreFlowState(FlowState newFlowState, bool persistent) public async Task StoreFlowState(FlowState newFlowState, bool persistent)