summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-10 08:56:33 +0000
committerDavid Robillard <d@drobilla.net>2013-02-10 08:56:33 +0000
commit36c22be51af07fc96a9168684949b82b8f6e325c (patch)
tree0cbdde26bbcd2d94727dd87ba61e2e7975eb9bc2 /src/node.c
parent1ad20b172af88a909991289e6a11c8cc7934a875 (diff)
downloadlilv-36c22be51af07fc96a9168684949b82b8f6e325c.tar.gz
lilv-36c22be51af07fc96a9168684949b82b8f6e325c.tar.bz2
lilv-36c22be51af07fc96a9168684949b82b8f6e325c.zip
Add lilv_world_ask() for easily checking if a statement exists.
Add lilv_world_get() and lilv_port_get() for easily getting one value. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5053 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 495bb49..7b22873 100644
--- a/src/node.c
+++ b/src/node.c
@@ -92,6 +92,10 @@ lilv_node_new(LilvWorld* world, LilvNodeType type, const char* str)
LilvNode*
lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
{
+ if (!node) {
+ return NULL;
+ }
+
LilvNode* result = NULL;
SordNode* datatype_uri = NULL;
LilvNodeType type = LILV_VALUE_STRING;