summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index d3cc1aa00..b7af482b2 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -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;