- /* If it's POP then dim */
- dimmed = (modest_protocol_info_get_transport_store_protocol (proto_str) ==
- MODEST_PROTOCOL_STORE_POP) ? TRUE : FALSE;
- if (dimmed)
- modest_dimming_rule_set_notification (rule, _("mail_in_ui_folder_create_error"));
+ if (proto_str != NULL) {
+ /* If it's POP then dim */
+ dimmed = (modest_protocol_info_get_transport_store_protocol (proto_str) ==
+ MODEST_PROTOCOL_STORE_POP) ? TRUE : FALSE;
+ if (dimmed)
+ modest_dimming_rule_set_notification (rule, _("mail_in_ui_folder_create_error"));
+ }