fix crash when saving a mesh and a custom property was removed before

extend unittest for this case

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1323 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2015-07-28 18:16:16 +00:00
parent 68fe500f18
commit e663fb9bac
2 changed files with 5 additions and 1 deletions

View File

@@ -207,7 +207,7 @@ std::vector<_PLYWriter_::CustomProperty> _PLYWriter_::writeCustomTypeHeader(std:
// check, if property is persistant
if (!prop->persistent())
if (!prop || !prop->persistent())
continue;