diff options
author | David Robillard <d@drobilla.net> | 2016-09-04 15:43:11 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-04 15:43:11 -0400 |
commit | c95e0b3250cbe5144546dff53d9b5665988bcce4 (patch) | |
tree | b272210ebc2bdb0bc2c04371bdb96b3d0a058854 /src/world.c | |
parent | c571c9caa83276ec2d12b246510b146a39bc5896 (diff) | |
download | lilv-c95e0b3250cbe5144546dff53d9b5665988bcce4.tar.gz lilv-c95e0b3250cbe5144546dff53d9b5665988bcce4.tar.bz2 lilv-c95e0b3250cbe5144546dff53d9b5665988bcce4.zip |
Fix NULL predicate crash in lilv_world_find_nodes
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 3 |
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)); |