Skip to content

Commit

Permalink
Fixed crash with the parameter picker when choosing a new path, it ha…
Browse files Browse the repository at this point in the history
…s a SelectPathChanged handler and the existing path is empty.
  • Loading branch information
Wibble199 committed Apr 29, 2020
1 parent 11d2eb9 commit bbd44a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static void SelectedPathDPChanged(DependencyObject sender, DependencyPro
}

// Raise an event informing subscribers
picker.SelectedPathChanged?.Invoke(picker, new SelectedPathChangedEventArgs(e.OldValue.ToString(), e.NewValue.ToString()));
picker.SelectedPathChanged?.Invoke(picker, new SelectedPathChangedEventArgs(e.OldValue?.ToString() ?? "", e.NewValue?.ToString() ?? ""));
}
#endregion

Expand Down

0 comments on commit bbd44a6

Please sign in to comment.