[libdazzle] properties-group: handle NULL object from weak ref
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] properties-group: handle NULL object from weak ref
- Date: Fri, 7 Jul 2017 09:40:30 +0000 (UTC)
commit e91912420101a9f0150f4cd622fce1fdf474061b
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 7 02:40:19 2017 -0700
properties-group: handle NULL object from weak ref
src/actions/dzl-properties-group.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/actions/dzl-properties-group.c b/src/actions/dzl-properties-group.c
index 2b995d0..8087a46 100644
--- a/src/actions/dzl-properties-group.c
+++ b/src/actions/dzl-properties-group.c
@@ -162,7 +162,12 @@ dzl_properties_group_query_action (GActionGroup *group,
*state_hint = NULL;
if (state)
- *state = get_action_state (object, mapping);
+ {
+ if (object)
+ *state = get_action_state (object, mapping);
+ else
+ *state = NULL;
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]