Gmail crash fix.

This commit is contained in:
Burak Kaan Köse
2025-02-24 09:48:07 +01:00
parent 9facfaffa8
commit ee5129830c

View File

@@ -708,7 +708,7 @@ public class GmailSynchronizer : WinoSynchronizer<IClientServiceRequest, Message
await Task.WhenAll(batchProcessCallbacks).ConfigureAwait(false);
// Try to update max history id.
var maxHistoryId = batchProcessCallbacks.Select(a => a.Result).Where(a => a.HistoryId != null).Max(a => a.HistoryId.Value);
var maxHistoryId = batchProcessCallbacks.Select(a => a.Result).Where(a => a?.HistoryId != null).Max(a => a.HistoryId.Value);
if (maxHistoryId != 0)
{