[anjuta/gnome-2-28] symbol-db: prevent rare crashes on project creation.
- From: Massimo Cora' <mcora src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-2-28] symbol-db: prevent rare crashes on project creation.
- Date: Wed, 30 Dec 2009 15:31:42 +0000 (UTC)
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]