We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e395254 commit 0bf290dCopy full SHA for 0bf290d
src/Files.App/App.xaml.cs
@@ -160,7 +160,10 @@ async Task ActivateAsync()
160
public async Task OnActivatedAsync(AppActivationArguments activatedEventArgs)
161
{
162
var activatedEventArgsData = activatedEventArgs.Data;
163
- Logger.LogInformation($"The app is being activated. Activation type: {activatedEventArgsData.GetType().Name}");
+
164
+ // Logger may not be initialized yet due to race condition during startup
165
+ if (Logger is not null)
166
+ Logger.LogInformation($"The app is being activated. Activation type: {activatedEventArgsData.GetType().Name}");
167
168
// InitializeApplication accesses UI, needs to be called on UI thread
169
await MainWindow.Instance.DispatcherQueue.EnqueueOrInvokeAsync(()
0 commit comments