From 8d475d7e34c3c1342328f64bb0f778b42a346a6a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 7 Nov 2001 08:36:52 +0000 Subject: [PATCH] test THEM for NULL --- Mesh/Generator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp index cf052be67b..51d0f6f129 100644 --- a/Mesh/Generator.cpp +++ b/Mesh/Generator.cpp @@ -1,4 +1,4 @@ -// $Id: Generator.cpp,v 1.28 2001-10-29 08:52:20 geuzaine Exp $ +// $Id: Generator.cpp,v 1.29 2001-11-07 08:36:52 geuzaine Exp $ #include "Gmsh.h" #include "Numeric.h" @@ -14,6 +14,7 @@ static List_T *Curves; void GetStatistics (double s[50]){ int i; + if(!THEM) return; THEM->Statistics[0] = Tree_Nbr (THEM->Points); THEM->Statistics[1] = Tree_Nbr (THEM->Curves); THEM->Statistics[2] = Tree_Nbr (THEM->Surfaces); -- GitLab