Skip to content

Commit f66d7cb

Browse files
authored
Fix: Fixed crash that would occur when switching between a tag and drive (#10697)
1 parent 63e6944 commit f66d7cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Files.App/Views/ModernShellPage.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,9 @@ public void NavigateToPath(string? navigationPath, Type? sourcePageType, Navigat
10891089
return;
10901090
}
10911091

1092+
if (string.IsNullOrEmpty(navigationPath))
1093+
return;
1094+
10921095
NavigationTransitionInfo transition = new SuppressNavigationTransitionInfo();
10931096

10941097
if (sourcePageType == typeof(WidgetsPage)

0 commit comments

Comments
 (0)