Skip to content

Commit

Permalink
RavenDB-22339 avoid NRE in ShardExecutor Dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
karmeli87 authored and arekpalinski committed May 10, 2024
1 parent 9d8653f commit cd8d832
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ private Dictionary<int, Lazy<RequestExecutor>> CreateExecutors()
public override void Dispose()
{
base.Dispose();

if (_requestExecutors == null)
return;

SafelyDisposeExecutors(_requestExecutors.Values);
}
}
Expand Down

0 comments on commit cd8d832

Please sign in to comment.