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

This commit is contained in:
wmayer
2022-08-04 00:50:50 +02:00
committed by Uwe
parent b06edfcb97
commit ff659b1352
+1 -1
View File
@@ -217,7 +217,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