Skip to content

Commit b0d8ee2

Browse files
authored
Fix: Fixed null ref in AdaptiveLayoutHelpers (#16076)
1 parent b2e1073 commit b0d8ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Helpers/Layout/AdaptiveLayoutHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private static Layouts GetAdaptiveLayout(IList<ListedItem> filesAndFolders)
4343

4444
private static Layouts GetPathLayout()
4545
{
46-
var desktopIni = ContentPageContext.ShellPage?.ShellViewModel.DesktopIni;
46+
var desktopIni = ContentPageContext.ShellPage?.ShellViewModel?.DesktopIni;
4747
if (desktopIni is null)
4848
return Layouts.None;
4949

0 commit comments

Comments
 (0)