Skip to content

Commit 7a11c1e

Browse files
authored
Fixed a crash that would occur when opening a shortcut files location (#3469)
1 parent 98997ce commit 7a11c1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Files/Interacts/Interaction.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ public void OpenItemWithApplicationPicker_Click(object sender, RoutedEventArgs e
394394
public async void OpenFileLocation_Click(object sender, RoutedEventArgs e)
395395
{
396396
var item = AssociatedInstance.ContentPage.SelectedItem as ShortcutItem;
397+
if (string.IsNullOrEmpty(item?.TargetPath))
398+
{
399+
return;
400+
}
397401
var folderPath = Path.GetDirectoryName(item.TargetPath);
398402
// Check if destination path exists
399403
var destFolder = await AssociatedInstance.FilesystemViewModel.GetFolderWithPathFromPathAsync(folderPath);

0 commit comments

Comments
 (0)