GVDB deals with empty lists by returning NULL for the list instead of a
zero-length (non-NULL) strv. We can work around that in GSettingsSchema
by checking for the NULL case and treating it like a zero-length list.
https://bugzilla.gnome.org/show_bug.cgi?id=660147
gint len;
list = gvdb_table_list (schema->priv->table, "");
- len = g_strv_length (list);
+ len = list ? g_strv_length (list) : 0;
schema->priv->items = g_new (GQuark, len);
j = 0;