[MOAB-dev] r5372 - MOAB/trunk/itaps/imesh

tautges at mcs.anl.gov tautges at mcs.anl.gov
Thu Feb 2 14:57:24 CST 2012


Author: tautges
Date: 2012-02-02 14:57:24 -0600 (Thu, 02 Feb 2012)
New Revision: 5372

Modified:
   MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
Log:
Fix reference through possibly-NULL pointer.



Modified: MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2012-02-02 19:39:35 UTC (rev 5371)
+++ MOAB/trunk/itaps/imesh/iMesh_MOAB.cpp	2012-02-02 20:57:24 UTC (rev 5372)
@@ -3217,7 +3217,7 @@
   CHKERR(rval, "Trouble creating scd vertex sequence.");
 
     // set the global box parameters
-  scd_box->set_global_box_dims(global_dims);
+  if (global_dims) scd_box->set_global_box_dims(global_dims);
 
   tmp_range.insert(scd_box->start_vertex(), scd_box->start_vertex()+scd_box->num_vertices()-1);
   tmp_range.insert(scd_box->start_element(), scd_box->start_element()+scd_box->num_elements()-1);








































More information about the moab-dev mailing list