diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 20:30:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 20:30:01 +0000 |
commit | 57381ee6b93ad6a991329c2a7aae0b2d84a3e7dd (patch) | |
tree | 37011b2dd9899f3c271cd7267c67164bd2a197d1 /src/serialisation | |
parent | 76500fc464ffa1cdeec0d90c466783fe1b3ac07d (diff) | |
download | ingen-57381ee6b93ad6a991329c2a7aae0b2d84a3e7dd.tar.gz ingen-57381ee6b93ad6a991329c2a7aae0b2d84a3e7dd.tar.bz2 ingen-57381ee6b93ad6a991329c2a7aae0b2d84a3e7dd.zip |
Fix crash on patch load.
Fixes ticket #369.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2002 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index 30aabc7a..732307b5 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -349,7 +349,7 @@ Parser::parse( root_path = ret; } else if (is_plugin) { - if (path_str.length() > 0) + if (URI::is_valid(path_str)) target->set_property(path_str, "rdf:type", Atom(Atom::URI, rdf_class.to_c_string())); } |