evolution-data-server r9304 - trunk/camel



Author: sragavan
Date: Mon Aug 11 06:21:43 2008
New Revision: 9304
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9304&view=rev

Log:
2008-08-08  Srinivasa Ragavan  <sragavan novell com>

	* camel/camel-folder-search.c: Check exception before getting. You
	save lots of warnings.


Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-folder-search.c

Modified: trunk/camel/camel-folder-search.c
==============================================================================
--- trunk/camel/camel-folder-search.c	(original)
+++ trunk/camel/camel-folder-search.c	Mon Aug 11 06:21:43 2008
@@ -493,7 +493,7 @@
 		matches = g_ptr_array_new();
 		cdb = (CamelDB *) (search->folder->cdb);
 		camel_db_select (cdb, tmp, (CamelDBSelectCB) read_uid_callback, matches, ex);
-		if (camel_exception_is_set(ex)) {
+		if (ex && camel_exception_is_set(ex)) {
 			const char *exception = camel_exception_get_description (ex);
 			if (strncmp(exception, "no such table", 13) == 0) {
 				g_warning ("Error during searching %s: %s\n", tmp, exception);



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