Skip to content

Commit

Permalink
FEM: Protect iteration from null ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ickby authored and wwmayer committed Jun 15, 2016
1 parent 47f2130 commit cda9921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Fem/App/FemMesh.cpp
Expand Up @@ -413,7 +413,7 @@ std::list<std::pair<int, int> > FemMesh::getVolumesByFace(const TopoDS_Face &fac
const SMDS_MeshVolume* vol = vol_iter->next();
SMDS_ElemIteratorPtr face_iter = vol->facesIterator();

while (face_iter->more()) {
while (face_iter && face_iter->more()) {
const SMDS_MeshFace* face = static_cast<const SMDS_MeshFace*>(face_iter->next());
int numNodes = face->NbNodes();

Expand Down

0 comments on commit cda9921

Please sign in to comment.