[gnome-builder] diagnostics: ensure we have an adapter before diagnosing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] diagnostics: ensure we have an adapter before diagnosing
- Date: Fri, 28 Oct 2016 01:46:40 +0000 (UTC)
commit b57884807175120dceee06691753ecf2fad18496
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 27 18:45:57 2016 -0700
diagnostics: ensure we have an adapter before diagnosing
If for some reason the adapter has been cleared, (such as releasing a
buffer), we can't proceed on the diagnosis.
libide/diagnostics/ide-diagnostics-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/diagnostics/ide-diagnostics-manager.c b/libide/diagnostics/ide-diagnostics-manager.c
index dfc7b91..a068782 100644
--- a/libide/diagnostics/ide-diagnostics-manager.c
+++ b/libide/diagnostics/ide-diagnostics-manager.c
@@ -491,7 +491,7 @@ ide_diagnostics_manager_begin_diagnose (gpointer data)
{
IdeDiagnosticsGroup *group = value;
- if (group->needs_diagnose)
+ if (group->needs_diagnose && group->adapter != NULL)
ide_diagnostics_group_diagnose (group, self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]