Code

Cleaned up comments
[inkscape.git] / src / inkscape.cpp
index d3cc1aa0064a3e748d5b78f15da76a9102e9c6ca..b7af482b2f87c583f9df51c593a8883c8109a993 100644 (file)
@@ -713,6 +713,7 @@ inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key)
     }
 
     Inkscape::XML::Node *repr = sp_repr_document_root (Inkscape::Preferences::get());
+    if (!repr) return NULL;
     g_assert (!(strcmp (repr->name(), "inkscape")));
 
     gchar const *s = key;