diff options
Diffstat (limited to 'src/server/GraphObjectImpl.hpp')
-rw-r--r-- | src/server/GraphObjectImpl.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/GraphObjectImpl.hpp b/src/server/GraphObjectImpl.hpp index 45a9e979..fa9cb6b9 100644 --- a/src/server/GraphObjectImpl.hpp +++ b/src/server/GraphObjectImpl.hpp @@ -62,8 +62,11 @@ public: /** Rename */ virtual void set_path(const Raul::Path& new_path) { - _path = new_path; - _symbol = new_path.symbol(); + _path = new_path; + const char* const new_sym = new_path.symbol(); + if (new_sym[0] != '\0') { + _symbol = Raul::Symbol(new_sym); + } } const Raul::Atom& get_property(const Raul::URI& key) const; |