From f6095c4f48c41b1f00ee1ec162c6a86d7e13a1c2 Mon Sep 17 00:00:00 2001 From: unitycoder Date: Fri, 6 Dec 2024 16:27:30 +0200 Subject: [PATCH] fix nullref if selected unity version is not available and tried to search updates --- UnityLauncherPro/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityLauncherPro/MainWindow.xaml.cs b/UnityLauncherPro/MainWindow.xaml.cs index 91b892f..dd31b86 100644 --- a/UnityLauncherPro/MainWindow.xaml.cs +++ b/UnityLauncherPro/MainWindow.xaml.cs @@ -796,7 +796,7 @@ async void GoLookForUpdatesForThisUnity() await CallGetUnityUpdates(); var unity = GetSelectedUnity(); - if (unity == null) return; + if (unity == null || string.IsNullOrEmpty(unity.Version) == true) return; if (dataGridUpdates.ItemsSource != null) {