[anjuta/gnome-2-28] language-support-cpp-java: added some assertion (probably related to bgo#602763)



commit 86af1344be99092b27d2e750bd2df329a0948773
Author: Johannes Schmid <jhs gnome org>
Date:   Mon Nov 23 23:24:47 2009 +0100

    language-support-cpp-java: added some assertion (probably related to bgo#602763)

 .../language-support-cpp-java/cpp-java-assist.c    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index ceb6395..84b8ea0 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -886,6 +886,10 @@ on_assist_chosen (IAnjutaEditorAssist* iassist, gint selection,
 	gboolean add_brace_after_func = FALSE;
 	
 	//DEBUG_PRINT ("assist-chosen: %d", selection);
+
+	g_return_if_fail (assist != NULL);
+	g_return_if_fail (assist->priv != NULL);
+	g_return_if_fail (assist->priv->completion_cache != NULL);
 	
 	if (assist->priv->completion_cache->cache)
 		tag = g_list_nth_data (assist->priv->completion_cache->cache,



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