From bbd44a6adbf3ed4d08d93ac0cd3de96008ff9cfd Mon Sep 17 00:00:00 2001 From: Will Bennion Date: Wed, 29 Apr 2020 09:33:18 +0100 Subject: [PATCH] Fixed crash with the parameter picker when choosing a new path, it has a SelectPathChanged handler and the existing path is empty. --- .../Project-Aurora/Controls/GameStateParameterPicker.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project-Aurora/Project-Aurora/Controls/GameStateParameterPicker.xaml.cs b/Project-Aurora/Project-Aurora/Controls/GameStateParameterPicker.xaml.cs index ded1e4a62..9db498c68 100644 --- a/Project-Aurora/Project-Aurora/Controls/GameStateParameterPicker.xaml.cs +++ b/Project-Aurora/Project-Aurora/Controls/GameStateParameterPicker.xaml.cs @@ -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