Resolves flag watch crash. Closes #4621

This commit is contained in:
Eric Gregory 2012-01-16 15:54:44 -08:00
parent 621ee5dcc8
commit 5eeead97c0
2 changed files with 5 additions and 2 deletions

View file

@ -326,6 +326,9 @@ private class Geary.GenericImapFolder : Geary.EngineFolder {
Gee.List<Geary.Email>? list_remote = yield list_email_by_id_async(low, int.MAX,
Email.Field.PROPERTIES, ListFlags.FORCE_UPDATE, flag_watch_cancellable);
if (list_remote == null)
return;
// Build map of emails that have changed.
foreach (Geary.Email e in list_remote) {
if (!local_map.has_key(e.id))

View file

@ -148,9 +148,9 @@ private class Geary.SendReplayQueue {
} catch (Error err) {
error("Unable to schedule operation on remote replay queue: %s", err.message);
}
} else {
op.set_ready(null);
}
op.set_ready(null);
}
}