summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-04-30 21:23:42 +0000
committerDavid Robillard <d@drobilla.net>2008-04-30 21:23:42 +0000
commit0655c632293211d6e0a23b13e277604600c4b683 (patch)
tree87381e14e7e24cbe176abe2cd526e8579497b259 /raul
parentdd825461b4a8a102d3c384e94a116c6f14c5b6f1 (diff)
downloadraul-0655c632293211d6e0a23b13e277604600c4b683.tar.gz
raul-0655c632293211d6e0a23b13e277604600c4b683.tar.bz2
raul-0655c632293211d6e0a23b13e277604600c4b683.zip
Fix Redland NULL node assertion failures when saving.
git-svn-id: http://svn.drobilla.net/lad/raul@1184 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r--raul/AtomRDF.hpp7
1 files 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 != "")