Skip to content

Commit

Permalink
Fix the check on the UiDispatcher; it does not need the CheckContext.
Browse files Browse the repository at this point in the history
  • Loading branch information
bclothier committed Mar 4, 2018
1 parent 6af85b0 commit 489b073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rubberduck.Parsing/UIContext/UiDispatcher.cs
Expand Up @@ -95,7 +95,7 @@ public Task<T> StartTask<T>(Func<T> func, TaskCreationOptions options = TaskCrea

private void CheckInitialization()
{
if (!_contextProvider.CheckContext())
if (_contextProvider.UiContext == null)
{
throw new InvalidOperationException("UiDispatcher is not initialized. Invoke Initialize() from UI thread first.");
}
Expand Down

0 comments on commit 489b073

Please sign in to comment.