evolution r36128 - branches/mail-dbus-remoting/mail



Author: sragavan
Date: Wed Aug 27 15:16:35 2008
New Revision: 36128
URL: http://svn.gnome.org/viewvc/evolution?rev=36128&view=rev

Log:
Fix null hashtable issue.


Modified:
   branches/mail-dbus-remoting/mail/camel-session-remote.c

Modified: branches/mail-dbus-remoting/mail/camel-session-remote.c
==============================================================================
--- branches/mail-dbus-remoting/mail/camel-session-remote.c	(original)
+++ branches/mail-dbus-remoting/mail/camel-session-remote.c	Wed Aug 27 15:16:35 2008
@@ -52,7 +52,8 @@
 		return;
 	}
 
-	store_rhash = g_hash_table_new (g_direct_hash, g_direct_equal);
+	if (!store_rhash)
+		store_rhash = g_hash_table_new (g_direct_hash, g_direct_equal);
 	d(printf("Camel session constructed remotely\n"));
 
 }
@@ -157,6 +158,9 @@
 	char *service, *err;
 	CamelObjectRemote *rstore;
 
+	if (!store_rhash)
+		store_rhash = g_hash_table_new (g_direct_hash, g_direct_equal);
+
 	dbus_error_init (&error);
 	/* Invoke the appropriate dbind call to MailSessionRemoteImpl */
 	ret = dbind_context_method_call (evolution_dbus_peek_context(), 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]