Skip to content

Commit 8998ae3

Browse files
authored
Fix: Fixed NullReferenceException with SetSelectedPathOrNavigate (#13766)
1 parent c41ec3d commit 8998ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Views/LayoutModes/ColumnViewBrowser.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public void SetSelectedPathOrNavigate(PathNavigationEventArgs e)
410410
if (ParentShellPageInstance is null)
411411
return;
412412

413-
if (NormalizePath(ParentShellPageInstance.FilesystemViewModel.WorkingDirectory) !=
413+
if (NormalizePath(ParentShellPageInstance.FilesystemViewModel?.WorkingDirectory) !=
414414
NormalizePath(e.ItemPath))
415415
ParentShellPageInstance.NavigateToPath(e.ItemPath);
416416
else

0 commit comments

Comments
 (0)