Index: src/libchcore/TPath.h =================================================================== diff -u -N -r591f291e22d2ece89acb266c8aa0b05c257a407c -r3fc1109991e7311d6b1e34ef0b730f9b4e1fd42a --- src/libchcore/TPath.h (.../TPath.h) (revision 591f291e22d2ece89acb266c8aa0b05c257a407c) +++ src/libchcore/TPath.h (.../TPath.h) (revision 3fc1109991e7311d6b1e34ef0b730f9b4e1fd42a) @@ -53,13 +53,13 @@ BOOST_STATIC_CONSTANT(bool, DefaultCaseSensitivity = false); public: - // Construction/destruction + // Construction/destruction TSmartPath(); TSmartPath(const TSmartPath& spPath); ~TSmartPath(); - // operators + // operators TSmartPath& operator=(const TSmartPath& spPath); bool operator==(const TSmartPath& rPath) const; @@ -125,12 +125,18 @@ bool IsEmpty() const; - // Serialization + // Serialization template void load(Archive& ar, unsigned int /*uiVersion*/) { PrepareToWrite(); - ar & m_pPath->m_strPath; + if(m_pPath) + ar & m_pPath->m_strPath; + else + { + tstring_t strEmpty; + ar & strEmpty; + } } template