From: Christophe Bourcier Date: Tue, 30 Jul 2019 07:27:52 +0000 (+0200) Subject: Prevent a sigsegv when the model of vertices is added to the document X-Git-Tag: V9_4_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=18329bee9fc5ee960e616ccac7d571fd8ca5431b;p=modules%2Fhexablock.git Prevent a sigsegv when the model of vertices is added to the document --- diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx index 60b97c1..11fece5 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx @@ -613,7 +613,7 @@ void DocumentModel::fillGeometry() shapeById[shapeName+","+QString::number(node->getIdent())] = node; // * update the compound of vertices - if (shape->getOrigin() == HEXA_NS::SH_CLOUD && !vertexCompound.IsNull()) + if (shape->getOrigin() == HEXA_NS::SH_CLOUD && !vertexCompound.IsNull() && !node->getShape().IsNull()) compoundBuilder.Add(topo_shapes[shapeName], node->getShape()); }