summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
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;