* add some argument checking to
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 9 Jul 2007 09:14:29 +0000 (09:14 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 9 Jul 2007 09:14:29 +0000 (09:14 +0000)
  modest_tny_account_store_get_transport_account_for_open_connection
  that might help with #62210

pmo-trunk-r2641

src/modest-tny-account-store.c

index 59b4fd6..8857626 100644 (file)
@@ -1321,6 +1321,10 @@ get_smtp_specific_transport_account_for_open_connection (ModestTnyAccountStore *
        if (!tny_device_is_online (device))
                return NULL;
 
+       g_return_val_if_fail (self, NULL);
+       g_return_val_if_fail (account_name, NULL);
+       
+       
 #ifdef MODEST_PLATFORM_MAEMO
        g_assert (TNY_IS_MAEMO_CONIC_DEVICE (device));
        TnyMaemoConicDevice *maemo_device = TNY_MAEMO_CONIC_DEVICE (device);