summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 1e51a2d..8760604 100644
--- a/src/world.c
+++ b/src/world.c
@@ -193,6 +193,9 @@ lilv_world_find_nodes(LilvWorld* world,
LILV_ERRORF("Subject `%s' is not a resource\n",
sord_node_get_string(subject->node));
return NULL;
+ } else if (!predicate) {
+ LILV_ERROR("Missing required predicate\n");
+ return NULL;
} else if (!lilv_node_is_uri(predicate)) {
LILV_ERRORF("Predicate `%s' is not a URI\n",
sord_node_get_string(predicate->node));