Skip to content

Commit

Permalink
don't throw on null stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Williams committed Aug 23, 2019
1 parent 7c74ac9 commit 58edead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tocsoft.DateTimeAbstractions/Clock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ internal static IDisposable Pin(DateTimeProvider provider)

private static void Pop()
{
clockStack.Value = clockStack.Value.Pop();
clockStack.Value = clockStack.Value?.Pop();
}

private sealed class PopWhenDisposed : IDisposable
Expand Down

0 comments on commit 58edead

Please sign in to comment.