[anjuta/gnome-2-28] symbol-db: prevent rare crashes on project creation.



commit d9f226e05804cc6ea6074368c2efb600ec9cbd8c
Author: Massimo Corà <mcora src gnome org>
Date:   Wed Dec 30 16:27:41 2009 +0100

    symbol-db: prevent rare crashes on project creation.

 plugins/symbol-db/plugin.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index 4f99661..f998499 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -1250,7 +1250,8 @@ clear_project_progress_bar (SymbolDBEngine *dbe, gpointer data)
 						 sdb_plugin->sdbe_project);
 	
 	/* ok, enable local symbols view */
-	if (!IANJUTA_IS_EDITOR (sdb_plugin->current_editor))
+	if (sdb_plugin->current_editor != NULL  &&
+	    IANJUTA_IS_EDITOR (sdb_plugin->current_editor) == FALSE)
 	{
 		DEBUG_PRINT ("!IANJUTA_IS_EDITOR (sdb_plugin->current_editor))");
 		return;



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