summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/world.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2441bec..db82cb9 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ lilv (0.22.1) unstable;
* Add lilv_state_set_metadata() for adding state banks/comments/etc
(based on patch from Hanspeter Portner)
* Fix crash when state contains non-POD properties
+ * Fix crash when NULL predicate is passed to lilv_world_find_nodes()
* Fix state file versioning
* Unload contained resources when bundle is unloaded
* Do not instantiate plugin when data fails to parse
@@ -17,7 +18,7 @@ lilv (0.22.1) unstable;
* Fix documentation installation
* Fix outdated comment references to lilv_uri_to_path()
- -- David Robillard <d@drobilla.net> Sat, 27 Aug 2016 09:14:39 -0400
+ -- David Robillard <d@drobilla.net> Sun, 04 Sep 2016 15:43:02 -0400
lilv (0.22.0) stable;
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));