]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
Prevent a sigsegv when the model of vertices is added to the document
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 30 Jul 2019 07:27:52 +0000 (09:27 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 30 Jul 2019 07:27:52 +0000 (09:27 +0200)
src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx

index 60b97c1334446406a722a75dadbea2e9b93dc755..11fece565d73315b48af7dd0f405b414094b1cf6 100644 (file)
@@ -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());
         }