Skip to content

Commit 9e1461a

Browse files
authored
Fixed an issue where an exception would occur when closing a tab with continue where you left off (#1802)
1 parent 6b6878c commit 9e1461a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ private void OnSuspending(object sender, SuspendingEventArgs e)
415415

416416
private void SaveSessionTabs() // Enumerates through all tabs and gets the Path property and saves it to AppSettings.LastSessionPages
417417
{
418-
AppSettings.LastSessionPages = MainPage.AppInstances.DefaultIfEmpty().Select(x => x != null ? x.Path : ResourceController.GetTranslation("NewTab")).ToArray();
418+
AppSettings.LastSessionPages = MainPage.AppInstances.DefaultIfEmpty().Select(tab => tab != null ? tab.Path ?? ResourceController.GetTranslation("NewTab") : ResourceController.GetTranslation("NewTab")).ToArray();
419419
}
420420

421421
// Occurs when an exception is not handled on the UI thread.

0 commit comments

Comments
 (0)