Skip to content

Commit

Permalink
Check for null commit position counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
JPWatson committed Jun 10, 2023
1 parent 6a7abfb commit d79822e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adaptive.Cluster/Service/ClusteredServiceAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ private bool CheckForClockTick(long nowNs)
lastSlowTickNs = nowNs;
long nowMs = epochClock.Time();

if (commitPosition.IsClosed)
if (null != commitPosition && commitPosition.IsClosed)
{
ctx.ErrorLog().Record(new AeronException(
"commit-pos counter unexpectedly closed, terminating", Category.WARN));
Expand Down

0 comments on commit d79822e

Please sign in to comment.