Skip to content

Commit fa2caab

Browse files
authored
Fix: Fixed NullReferenceException in ColumnShellPage.NavigateToPath (#14351)
1 parent 96b5fb7 commit fa2caab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Views/Shells/ColumnShellPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public override void Up_Click()
174174

175175
public override void NavigateToPath(string navigationPath, Type sourcePageType, NavigationArguments navArgs = null)
176176
{
177-
this.FindAscendant<ColumnsLayoutPage>().SetSelectedPathOrNavigate(navigationPath, sourcePageType, navArgs);
177+
this.FindAscendant<ColumnsLayoutPage>()?.SetSelectedPathOrNavigate(navigationPath, sourcePageType, navArgs);
178178
}
179179

180180
public override void NavigateHome()

0 commit comments

Comments
 (0)