summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/style-internal.cpp')
-rw-r--r--src/style-internal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index 6a8ff6f89..939d63e53 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -1122,6 +1122,9 @@ SPIShapes::read( gchar const *str) {
// The object/repr this property is connected to..
SPObject* object = style->object;
+ if (!object) {
+ return;
+ }
SPDocument* document = object->document;
Inkscape::XML::Node *text_repr = object->getRepr();