aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 618bbf3..4c76859 100644
--- a/src/state.c
+++ b/src/state.c
@@ -97,6 +97,10 @@ jalv_load_presets(Jalv* jalv, PresetSink sink, void* data)
LILV_FOREACH(nodes, i, presets) {
const LilvNode* preset = lilv_nodes_get(presets, i);
lilv_world_load_resource(jalv->world, preset);
+ if (!sink) {
+ continue;
+ }
+
LilvNodes* labels = lilv_world_find_nodes(
jalv->world, preset, jalv->nodes.rdfs_label, NULL);
if (labels) {