summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-17 03:40:36 +0000
committerDavid Robillard <d@drobilla.net>2015-02-17 03:40:36 +0000
commitfd84402de98a7a941e0eba0d5da76b042eac1ded (patch)
treeb224d21bcebc674673163e7607f8bf1f4141eb3d /src
parentd4ce698948b6d3aa18e692138e8d4392219aa187 (diff)
downloadganv-fd84402de98a7a941e0eba0d5da76b042eac1ded.tar.gz
ganv-fd84402de98a7a941e0eba0d5da76b042eac1ded.tar.bz2
ganv-fd84402de98a7a941e0eba0d5da76b042eac1ded.zip
Fix crash when getting empty label.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5580 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.c b/src/node.c
index 55d8f1e..5a4f727 100644
--- a/src/node.c
+++ b/src/node.c
@@ -198,7 +198,7 @@ ganv_node_get_property(GObject* object,
switch (prop_id) {
GET_CASE(PARTNER, object, impl->partner);
- GET_CASE(LABEL, string, impl->label->impl->text);
+ GET_CASE(LABEL, string, impl->label ? impl->label->impl->text : NULL);
GET_CASE(DASH_LENGTH, double, impl->dash_length);
GET_CASE(DASH_OFFSET, double, impl->dash_offset);
GET_CASE(BORDER_WIDTH, double, impl->border_width);