diff --git a/UnitystationLauncher/Services/InstallationService.cs b/UnitystationLauncher/Services/InstallationService.cs index 8a858c7..7e1ff3d 100644 --- a/UnitystationLauncher/Services/InstallationService.cs +++ b/UnitystationLauncher/Services/InstallationService.cs @@ -518,7 +518,7 @@ void ScanLogs(ScanLog log) StringBuilder sb = new(); sb.AppendLine($"Security scan failed for: {download.ForkName} {download.BuildVersion}"); - sb.AppendLine(scanLogs.Last(l => l.LogMessage.Contains("Total violations")).LogMessage); + sb.AppendLine(scanLogs.LastOrDefault(l => l.LogMessage.Contains("Total violations"))?.LogMessage ?? string.Empty); sb.AppendLine($"Scan log written to: {filePath}"); sb.AppendLine("Please report this issue to the fork developers.");