summaryrefslogtreecommitdiff
path: root/src/raptor_serialize_dot.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2007-08-18 08:10:32 +0000
committerDave Beckett <dave@dajobe.org>2007-08-18 08:10:32 +0000
commitee1034b4910ca1cad8bb808fd5d4f58da22a5127 (patch)
treef41102069db08e53fe4e800ed99499662740ed1a /src/raptor_serialize_dot.c
parent52f899bd48e6e1c08e83b3d41f52e2059b775f4e (diff)
downloadraptor-ee1034b4910ca1cad8bb808fd5d4f58da22a5127.tar.gz
(raptor_dot_serializer_end): Handle a missing base URI.
Fixes Issue#0000216 http://bugs.librdf.org/mantis/view.php?id=216
Diffstat (limited to 'src/raptor_serialize_dot.c')
-rw-r--r--src/raptor_serialize_dot.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/raptor_serialize_dot.c b/src/raptor_serialize_dot.c
index dfb0261c..da2c444a 100644
--- a/src/raptor_serialize_dot.c
+++ b/src/raptor_serialize_dot.c
@@ -709,8 +709,11 @@ raptor_dot_serializer_end(raptor_serializer* serializer)
raptor_iostream_write_string(serializer->iostream,
(const unsigned char *)"\n\tlabel=\"\\n\\nModel:\\n");
- raptor_iostream_write_string(serializer->iostream,
- raptor_uri_as_string(serializer->base_uri));
+ if(serializer->base_uri)
+ raptor_iostream_write_string(serializer->iostream,
+ raptor_uri_as_string(serializer->base_uri));
+ else
+ raptor_iostream_write_string(serializer->iostream, "(Unknown)");
if(raptor_sequence_size(context->namespaces)) {
raptor_iostream_write_string(serializer->iostream,