From c15151dd58dbca897f7a5ac99441b6fad7f1d38a Mon Sep 17 00:00:00 2001 From: Robin Sonneveld <6283731+rtsonneveld@users.noreply.github.com> Date: Mon, 13 Dec 2021 01:35:05 +0100 Subject: [PATCH] Fixed a nullpointer when inputting an empty progress array --- OpenSpaceToolbox/ViewModels/ProgressArrayWindowViewModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenSpaceToolbox/ViewModels/ProgressArrayWindowViewModel.cs b/OpenSpaceToolbox/ViewModels/ProgressArrayWindowViewModel.cs index dbeb45f..1fb589f 100644 --- a/OpenSpaceToolbox/ViewModels/ProgressArrayWindowViewModel.cs +++ b/OpenSpaceToolbox/ViewModels/ProgressArrayWindowViewModel.cs @@ -45,6 +45,7 @@ public string SavedProgressText get => SavedProgress==null ? string.Empty : string.Join(" ", SavedProgress.Select(b => b.ToString())); set { + if (value == null) return; string[] byteStrings = value.Split(' '); byte[] byteArray = new byte[Rayman2ProgressArrayExtra.ProgressArrayLengthBytes];