[gnome-builder/wip/chergert/completion] completion: check for NULL before calling update



commit 77ddb8650e58ecccd5fd7269b04c14c40d736710
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 1 18:10:07 2018 -0700

    completion: check for NULL before calling update

 src/libide/completion/ide-completion.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/completion/ide-completion.c b/src/libide/completion/ide-completion.c
index 60085e15a..45cd89a4b 100644
--- a/src/libide/completion/ide-completion.c
+++ b/src/libide/completion/ide-completion.c
@@ -613,7 +613,8 @@ ide_completion_queued_update_cb (gpointer user_data)
 
   self->queued_update = 0;
 
-  ide_completion_update (self, IDE_COMPLETION_INTERACTIVE);
+  if (self->context != NULL)
+    ide_completion_update (self, IDE_COMPLETION_INTERACTIVE);
 
   return G_SOURCE_REMOVE;
 }


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