Check for null email store before using; fix #7566
This commit is contained in:
parent
64dd643760
commit
76062eb900
1 changed files with 5 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue