it's debatable whether this bug was not already fixed by the send-queue fixes done before; but as this crash was seen with W06, there *might* still be a problem.
so, fixing the symptom here. not sure what led to the crash, but it should not happen anymore.
pmo-trunk-r4173
}
TnyAccount*
-modest_tny_account_store_get_smtp_specific_transport_account_for_open_connection (ModestTnyAccountStore *self,
- const gchar *account_name)
+modest_tny_account_store_get_smtp_specific_transport_account_for_open_connection (
+ ModestTnyAccountStore *self, const gchar *account_name)
{
TnyDevice *device;
/* Get the current connection: */
device = modest_runtime_get_device ();
-
+
+ if (!device) {
+ g_warning ("%s: could not get device", __FUNCTION__);
+ return NULL;
+ }
+
if (!tny_device_is_online (device))
return NULL;