Check for null email store before using; fix #7566

This commit is contained in:
Charles Lindsay 2013-10-02 15:52:28 -07:00
parent 64dd643760
commit 76062eb900

View file

@ -1909,8 +1909,11 @@ public class GearyController : Geary.BaseObject {
Gee.MultiMap<Geary.EmailIdentifier, Type>? selected_operations = null;
try {
if (current_folder != null) {
selected_operations = yield email_stores.get(current_folder.account)
.get_supported_operations_async(get_selected_email_ids(false), cancellable);
Geary.App.EmailStore? store = email_stores.get(current_folder.account);
if (store != null) {
selected_operations = yield store
.get_supported_operations_async(get_selected_email_ids(false), cancellable);
}
}
} catch (Error e) {
debug("Error checking for what operations are supported in the selected conversations: %s",