diff options
-rw-r--r-- | src/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -281,7 +281,7 @@ serd_env_expand_in_place(const SerdEnv* env, const SerdPrefix* const prefix = serd_env_find(env, str, name_len); if (prefix) { uri_prefix->buf = serd_node_string(prefix->uri); - uri_prefix->len = prefix->uri->n_bytes; + uri_prefix->len = prefix->uri ? prefix->uri->n_bytes : 0; uri_suffix->buf = colon + 1; uri_suffix->len = curie->n_bytes - name_len - 1; return SERD_SUCCESS; |