Fixed: crash when point clouds are not associated to labels in the dialog

This commit is contained in:
Paul Leroy
2023-05-03 14:34:14 +02:00
parent c544bcea94
commit 21c389c43e
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -346,7 +346,10 @@ void q3DMASCPlugin::doTrainAction()
for (masc::Tools::NamedClouds::iterator it = loadedClouds.begin(); it != loadedClouds.end(); ++it)
{
m_app->dispToConsole(it.key() + " = " + it.value()->getName(), ccMainAppInterface::STD_CONSOLE_MESSAGE);
if (it.value())
m_app->dispToConsole(it.key() + " = " + it.value()->getName(), ccMainAppInterface::STD_CONSOLE_MESSAGE);
else
ccLog::Warning(it.key() + " is not associated to a point cloud");
}
//test role