[gnome-builder] sourceview: protect against NULL completion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sourceview: protect against NULL completion
- Date: Tue, 26 Jun 2018 21:52:44 +0000 (UTC)
commit e6c597d9588a5db269d435d933b4b560e4b4f2cf
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 26 14:49:32 2018 -0700
sourceview: protect against NULL completion
This can happen during destruction, for example.
src/libide/sourceview/ide-source-view.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index d72e36cb2..6524e6414 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -321,7 +321,8 @@ block_interactive (IdeSourceView *self)
g_assert (IDE_IS_SOURCE_VIEW (self));
- ide_completion_block_interactive (priv->completion);
+ if (priv->completion)
+ ide_completion_block_interactive (priv->completion);
}
static void
@@ -331,7 +332,8 @@ unblock_interactive (IdeSourceView *self)
g_assert (IDE_IS_SOURCE_VIEW (self));
- ide_completion_unblock_interactive (priv->completion);
+ if (priv->completion != NULL)
+ ide_completion_unblock_interactive (priv->completion);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]