diff --git a/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs b/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs index 8b905c56a..f53a099af 100644 --- a/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs +++ b/src/Artemis.UI.Shared/Screens/GradientEditor/GradientEditorViewModel.cs @@ -65,6 +65,9 @@ namespace Artemis.UI.Shared.Screens.GradientEditor public void RemoveColorStop(ColorStopViewModel colorStopViewModel) { + if (colorStopViewModel == null) + return; + ColorStopViewModels.Remove(colorStopViewModel); ColorGradient.Stops.Remove(colorStopViewModel.ColorStop); ColorGradient.OnColorValuesUpdated();