Skip to content

Commit

Permalink
Prevents throwing if MainLoop is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Mar 25, 2024
1 parent c8b3e15 commit feed69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Terminal.Gui/Application.MainLoopSyncContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private sealed class MainLoopSyncContext : SynchronizationContext

public override void Post (SendOrPostCallback d, object state)
{
MainLoop.AddIdle (
MainLoop?.AddIdle (
() =>
{
d (state);
Expand Down

0 comments on commit feed69d

Please sign in to comment.