[gnome-builder] workbench: check perspective for NULL



commit 852576c9da795f9aed33fa78a235e8158957b865
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 17 01:24:00 2016 -0400

    workbench: check perspective for NULL

 libide/workbench/ide-workbench.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/workbench/ide-workbench.c b/libide/workbench/ide-workbench.c
index 6d2e86e..6e9973e 100644
--- a/libide/workbench/ide-workbench.c
+++ b/libide/workbench/ide-workbench.c
@@ -803,7 +803,7 @@ ide_workbench_set_visible_perspective (IdeWorkbench   *self,
                      g_object_ref (self));
     }
 
-  if (self->addins != NULL)
+  if (self->addins != NULL && self->perspective != NULL)
     peas_extension_set_foreach (self->addins,
                                 ide_workbench_notify_perspective_set,
                                 self);


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