Fem: [skip ci] fix possible crash in PropertyPostDataObject::getMemSize

This commit is contained in:
wmayer
2022-08-03 10:55:31 +02:00
parent db3e28418d
commit 30cb46cc5f

View File

@@ -220,7 +220,7 @@ void PropertyPostDataObject::Paste(const App::Property &from)
unsigned int PropertyPostDataObject::getMemSize(void) const
{
return m_dataObject->GetActualMemorySize();
return m_dataObject ? m_dataObject->GetActualMemorySize() : 0;
}
void PropertyPostDataObject::getPaths(std::vector<App::ObjectIdentifier> & /*paths*/) const