From 8dc7c775b78289509239134c6ab145eeac732741 Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:40:58 -0700 Subject: [PATCH] Extra null check in multiselect ShowPreview --- Patches/MultiSelectPatches.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Patches/MultiSelectPatches.cs b/Patches/MultiSelectPatches.cs index c9f4a1e..961f8f5 100644 --- a/Patches/MultiSelectPatches.cs +++ b/Patches/MultiSelectPatches.cs @@ -1390,6 +1390,11 @@ public static class MultiSelectPatches return; } + if (gridAddress == null) + { + return; + } + if (gridAddress.Grid != gridView.Grid) { GridView otherGridView = gridView.transform.parent.GetComponentsInChildren().FirstOrDefault(gv => gv.Grid == gridAddress.Grid);