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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

UnityLauncherPro/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
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)