[anjuta] symbol-db: prevent rare crashes on project creation.



commit 82e21b25d26b21d0b643ac0b02f52fe4b3944765
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 0abb531..ed512ff 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)
 	{
 		return;
 	}



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