summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-08-10 00:43:00 +0000
committerDavid Robillard <d@drobilla.net>2013-08-10 00:43:00 +0000
commit6bc70c7785f5c95a32a210ee1f2cddf0e46cb4a5 (patch)
treeebaf338d1034da10183fdb6e4dbc2a09f8fb1eed /src/instance.c
parenta27fdbdbd30fa2be7fdcfe2930ccdc10e0a8f390 (diff)
downloadsuil-6bc70c7785f5c95a32a210ee1f2cddf0e46cb4a5.tar.gz
suil-6bc70c7785f5c95a32a210ee1f2cddf0e46cb4a5.tar.bz2
suil-6bc70c7785f5c95a32a210ee1f2cddf0e46cb4a5.zip
Fix suil_instance_extension_data() for UIs with NULL extension_data (fix #924).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5154 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r--src/instance.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index b45d7bf..7f651d9 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -324,5 +324,8 @@ const void*
suil_instance_extension_data(SuilInstance* instance,
const char* uri)
{
- return instance->descriptor->extension_data(uri);
+ if (instance->descriptor->extension_data) {
+ return instance->descriptor->extension_data(uri);
+ }
+ return NULL;
}