aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ephy-node.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c
index 67889893b..36bc2d22c 100644
--- a/lib/ephy-node.c
+++ b/lib/ephy-node.c
@@ -724,6 +724,8 @@ ephy_node_write_to_xml(EphyNode *node,
value = g_ptr_array_index (node->properties, i);
if (value == NULL) continue;
+ if (G_VALUE_TYPE (value) == G_TYPE_STRING &&
+ g_value_get_string (value) == NULL) continue;
ret = xmlTextWriterStartElement (writer, (const xmlChar *)"property");
if (ret < 0) break;