Skip to content

Commit fa9e57d

Browse files
authored
Fix: Fixed NullReferenceException in ModernShellPage (#12135)
1 parent 8ad02d7 commit fa9e57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public override void NavigateToPath(string? navigationPath, Type? sourcePageType
319319
navigationPath.TrimEnd(Path.DirectorySeparatorChar).Equals(
320320
FilesystemViewModel.WorkingDirectory.TrimEnd(Path.DirectorySeparatorChar),
321321
StringComparison.OrdinalIgnoreCase)) &&
322-
(TabItemArguments.NavigationArg is not string navArg ||
322+
(TabItemArguments?.NavigationArg is not string navArg ||
323323
string.IsNullOrEmpty(navArg) ||
324324
!navArg.StartsWith("tag:"))) // Return if already selected
325325
{

0 commit comments

Comments
 (0)