Index: /issm/trunk/src/c/objects/Penta.cpp
===================================================================
--- /issm/trunk/src/c/objects/Penta.cpp	(revision 3489)
+++ /issm/trunk/src/c/objects/Penta.cpp	(revision 3490)
@@ -80,9 +80,11 @@
 
 	//elements of type 3 are macayeal type penta. we collapse the formulation on their base.
-	if (*(iomodel->elements_type+2*i+0)==MacAyealFormulationEnum()){ 
-		this->properties.collapse=1;
-	}
-	else{
-		this->properties.collapse=0;
+	if(iomodel->elements_type){
+		if (*(iomodel->elements_type+2*i+0)==MacAyealFormulationEnum()){ 
+			this->properties.collapse=1;
+		}
+		else{
+			this->properties.collapse=0;
+		}
 	}
 
