[Xfce4-commits] [apps/xfdashboard] 01/02: Do not begin traversal at NULL pointer if no root actor was provided and no stage actor could be retrieved.
noreply at xfce.org
noreply at xfce.org
Thu Apr 20 20:39:22 CEST 2017
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit b957cbd380aa024177db5397e161dbcac08dd1c8
Author: Stephan Haller <nomad at froevel.de>
Date: Thu Apr 20 20:36:47 2017 +0200
Do not begin traversal at NULL pointer if no root actor was provided and no stage actor could be retrieved.
---
libxfdashboard/utils.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libxfdashboard/utils.c b/libxfdashboard/utils.c
index ed198ad..cc79b2a 100644
--- a/libxfdashboard/utils.c
+++ b/libxfdashboard/utils.c
@@ -474,6 +474,15 @@ void xfdashboard_traverse_actor(ClutterActor *inRootActor,
if(!inRootActor)
{
inRootActor=CLUTTER_ACTOR(xfdashboard_application_get_stage(NULL));
+
+ /* If root actor is still NULL then no stage was found and we cannot
+ * start the traversal.
+ */
+ if(!inRootActor)
+ {
+ XFDASHBOARD_DEBUG(NULL, MISC, "No root actor to begin traversal at was provided and no stage available");
+ return;
+ }
}
/* If no selector is provider create a seletor matching all actors.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list