* "system-$COMPONENT" but since the data directories are already
* split out by component, we'll continue to use the old "system"
* directories for these particular data sources. */
- if (e_source_equal (source, builtin_source))
+ if (builtin_source != NULL && e_source_equal (source, builtin_source))
uid = "system";
switch (path_type) {
g_warn_if_reached ();
}
- g_object_unref (builtin_source);
+ if (builtin_source)
+ g_object_unref (builtin_source);
return filename;
}