Skip to content

Commit f6095c4

Browse files
committed
fix nullref if selected unity version is not available and tried to search updates
1 parent 104fd99 commit f6095c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityLauncherPro/MainWindow.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ async void GoLookForUpdatesForThisUnity()
796796
await CallGetUnityUpdates();
797797

798798
var unity = GetSelectedUnity();
799-
if (unity == null) return;
799+
if (unity == null || string.IsNullOrEmpty(unity.Version) == true) return;
800800

801801
if (dataGridUpdates.ItemsSource != null)
802802
{

0 commit comments

Comments
 (0)