summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-util.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-04-21 00:34:35 +0000
committerMartin Owens <doctormo@gmail.com>2013-04-21 00:34:35 +0000
commit5ceb89e41d788ae9ed18b972cedbbfcb923ddc27 (patch)
treef7704bc3c60dfd1d7ec0b2074e28f3aa3dd287fc /src/xml/repr-util.cpp
parentPull Merge (diff)
downloadinkscape-5ceb89e41d788ae9ed18b972cedbbfcb923ddc27.tar.gz
inkscape-5ceb89e41d788ae9ed18b972cedbbfcb923ddc27.zip
Throw better error when attribute isn't available
(bzr r12288)
Diffstat (limited to 'src/xml/repr-util.cpp')
-rw-r--r--src/xml/repr-util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 6ea20b87a..8c8425de0 100644
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
@@ -524,6 +524,8 @@ unsigned int sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom
gchar const *v = repr->attribute(key);
+ g_return_val_if_fail(v != NULL, FALSE);
+
gchar ** strarray = g_strsplit(v, ",", 2);
if (strarray && strarray[0] && strarray[1]) {