Skip to content

Commit eb23363

Browse files
authored
Fix: Fixed NullReferenceException in QuickAccessWidgetViewModel.NavigateToPath (#15466)
1 parent ee185c6 commit eb23363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/ViewModels/UserControls/Widgets/QuickAccessWidgetViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ public async Task NavigateToPath(string path)
225225
return;
226226
}
227227

228-
ContentPageContext.ShellPage!.NavigateWithArguments(
229-
ContentPageContext.ShellPage!.InstanceViewModel.FolderSettings.GetLayoutType(path),
228+
ContentPageContext.ShellPage?.NavigateWithArguments(
229+
ContentPageContext.ShellPage.InstanceViewModel.FolderSettings.GetLayoutType(path),
230230
new() { NavPathParam = path });
231231
}
232232

0 commit comments

Comments
 (0)