summaryrefslogtreecommitdiff
path: root/src/raptor_qname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/raptor_qname.c')
-rw-r--r--src/raptor_qname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor_qname.c b/src/raptor_qname.c
index e3f460b4..24fbd4dd 100644
--- a/src/raptor_qname.c
+++ b/src/raptor_qname.c
@@ -154,7 +154,7 @@ raptor_new_qname(raptor_namespace_stack *nstack,
if(ns) {
qname->nspace = ns;
#if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1
- RAPTOR_DEBUG2("Found default namespace %s\n", raptor_uri_as_string(ns->uri));
+ RAPTOR_DEBUG2("Found default namespace with URI %s\n", ns->uri ? raptor_uri_as_string(ns->uri) : "None");
#endif
} else {
#if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1
@@ -190,7 +190,7 @@ raptor_new_qname(raptor_namespace_stack *nstack,
"The namespace prefix in \"%s\" was not declared.", name);
} else {
#if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1
- RAPTOR_DEBUG3("Found namespace prefix %s URI %s\n", ns->prefix, raptor_uri_as_string(ns->uri));
+ RAPTOR_DEBUG3("Found namespace prefix %s URI %s\n", ns->prefix, ns->uri ? raptor_uri_as_string(ns->uri) : "None");
#endif
qname->nspace = ns;
}