aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/dbusmenu-dumper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c
index f0f4ba0..f2e2bec 100644
--- a/tools/dbusmenu-dumper.c
+++ b/tools/dbusmenu-dumper.c
@@ -108,6 +108,10 @@ value2string (const GValue * value, int depth)
{
gchar * str = NULL;
+ if (value == NULL) {
+ return g_strdup("(null)");
+ }
+
if (dbus_g_type_is_collection(G_VALUE_TYPE(value))) {
str = collection_dumper(value, depth);
} else if (G_VALUE_TYPE(value) == G_TYPE_STRV) {