[gnome-builder/wip/chergert/langserv] extensions: add assertion to ensure we have valid context



commit f00998b122ebf72bce4078ae2552d84404ed31ec
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 23 20:08:49 2016 -0700

    extensions: add assertion to ensure we have valid context

 libide/plugins/ide-extension-set-adapter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/plugins/ide-extension-set-adapter.c b/libide/plugins/ide-extension-set-adapter.c
index a815ea3..e09aed2 100644
--- a/libide/plugins/ide-extension-set-adapter.c
+++ b/libide/plugins/ide-extension-set-adapter.c
@@ -155,6 +155,8 @@ ide_extension_set_adapter_reload (IdeExtensionSetAdapter *self)
   context = ide_object_get_context (IDE_OBJECT (self));
   plugins = peas_engine_get_plugin_list (self->engine);
 
+  g_assert (IDE_IS_CONTEXT (context));
+
   for (; plugins; plugins = plugins->next)
     {
       PeasPluginInfo *plugin_info = plugins->data;


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