Skip to content
Snippets Groups Projects
Commit ab02ba89 authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/U/MGT] constructMeshesFromGeometry: Exit when nullptr.

The check for nullptr is necessary in order not to suppress that an error
occurred.
parent eb28e590
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,11 @@ int main(int argc, char* argv[])
for (auto const& m_ptr : extracted_meshes)
{
if (!m_ptr)
{
ERR("Could not create a mesh for each given geometry.");
return EXIT_FAILURE;
}
MeshLib::IO::writeMeshToFile(*m_ptr, m_ptr->getName() + ".vtu");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment