Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 4c1d33c

Browse files
committed
This might be accessed before things have a chance to initialize
1 parent 95f1cb7 commit 4c1d33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void Dispose()
247247
public ISettings SystemSettings { get; protected set; }
248248
public ISettings UserSettings { get; protected set; }
249249
public IUsageTracker UsageTracker { get; protected set; }
250-
public bool IsBusy { get { return isBusy || RepositoryManager.IsBusy; } }
250+
public bool IsBusy { get { return isBusy || (RepositoryManager?.IsBusy ?? false); } }
251251
protected TaskScheduler UIScheduler { get; private set; }
252252
protected SynchronizationContext SynchronizationContext { get; private set; }
253253
protected IRepositoryManager RepositoryManager { get { return repositoryManager; } }

0 commit comments

Comments
 (0)