From 0655c632293211d6e0a23b13e277604600c4b683 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 30 Apr 2008 21:23:42 +0000 Subject: Fix Redland NULL node assertion failures when saving. git-svn-id: http://svn.drobilla.net/lad/raul@1184 a436a847-0d15-0410-975c-d299462d15a1 --- raul/AtomRDF.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/raul/AtomRDF.hpp b/raul/AtomRDF.hpp index 53fd67d..84e8287 100644 --- a/raul/AtomRDF.hpp +++ b/raul/AtomRDF.hpp @@ -54,7 +54,9 @@ node_to_atom(const Redland::Node& node) } -/** Convert a Raul::Atom to a Redland::Node */ +/** Convert a Raul::Atom to a Redland::Node + * Note that not all Atoms are serialisable, the returned node should + * be checked (can be treated as a bool) before use. */ inline Redland::Node atom_to_node(Redland::World& world, const Atom& atom) { @@ -91,7 +93,8 @@ atom_to_node(Redland::World& world, const Atom& atom) case Atom::BLOB: case Atom::NIL: default: - std::cerr << "WARNING: Unserializable Atom!" << std::endl; + //std::cerr << "WARNING: Unserializable Atom!" << std::endl; + break; } if (str != "") -- cgit v1.2.1