summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/world.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c
index a25d810..02dbeec 100644
--- a/src/world.c
+++ b/src/world.c
@@ -235,8 +235,11 @@ lilv_world_ask(LilvWorld* world,
const LilvNode* predicate,
const LilvNode* object)
{
- return sord_ask(
- world->model, subject->node, predicate->node, object->node, NULL);
+ return sord_ask(world->model,
+ subject ? subject->node : NULL,
+ predicate ? predicate->node : NULL,
+ object ? object->node : NULL,
+ NULL);
}
SordModel*