Don't assert when switching folders; fix #7141

This commit is contained in:
Charles Lindsay 2013-07-09 11:05:55 -07:00
parent 40c28c305f
commit 02a23c4747

View file

@ -591,7 +591,8 @@ private class Geary.ImapEngine.GenericFolder : Geary.AbstractFolder, Geary.Folde
if (open_count == 0 || --open_count > 0)
return;
_properties.remove(remote_folder.properties);
if (remote_folder != null)
_properties.remove(remote_folder.properties);
yield close_internal_async(CloseReason.LOCAL_CLOSE, CloseReason.REMOTE_CLOSE, cancellable);
}