diff options
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/serialisation/Serialiser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/serialisation/Serialiser.cpp b/src/libs/serialisation/Serialiser.cpp index 1caac5b0..8d5bb1a7 100644 --- a/src/libs/serialisation/Serialiser.cpp +++ b/src/libs/serialisation/Serialiser.cpp @@ -160,6 +160,9 @@ Redland::Node Serialiser::path_to_node_id(const Path& path) { assert(_model); + + if (path == _root_object->path()) + return Redland::Node(_model->world(), Redland::Node::RESOURCE, _base_uri); NodeMap::iterator i = _node_map.find(path); if (i != _node_map.end()) { |