Skip to content

Commit

Permalink
jesus
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 25, 2024
1 parent d30f691 commit 55eee41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Consolonia.Core/Controls/FileSavePicker.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ private void OnDoubleTapped(object sender, TappedEventArgs e)

private async void OnOK(object sender, RoutedEventArgs e)
{
var lifetime = Application.Current.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime;
var lifetime = Application.Current?.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime;
ArgumentNullException.ThrowIfNull(lifetime);
ArgumentNullException.ThrowIfNull(lifetime.MainWindow);
ArgumentNullException.ThrowIfNull(lifetime.MainWindow.StorageProvider);

var savePath = ViewModel.SavePath;
if (!Path.IsPathFullyQualified(ViewModel.SavePath))
Expand Down

0 comments on commit 55eee41

Please sign in to comment.