Skip to content

Commit 3485ef4

Browse files
authored
Fix: Fixed exception when parsing new menu items (#10874)
1 parent f91ae1b commit 3485ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Shell/ShellNewMenuHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static Task<ShellNewEntry> ParseShellNewRegistryEntry(RegistryKey key, R
8383
!valueNames.Contains("ItemName", StringComparer.OrdinalIgnoreCase) &&
8484
!valueNames.Contains("Data", StringComparer.OrdinalIgnoreCase))
8585
{
86-
return null;
86+
return Task.FromResult<ShellNewEntry>(null);
8787
}
8888

8989
var extension = root.Name.Substring(root.Name.LastIndexOf('\\') + 1);

0 commit comments

Comments
 (0)