diff --git a/ObjectTypes/HexahedralMesh/PluginFunctionsHexahedralMesh.cc b/ObjectTypes/HexahedralMesh/PluginFunctionsHexahedralMesh.cc
index cc1c712d549da192ec4024cc9a6f7e0354227b92..cb64800d97affc3dd97d555ff54f83074bae2394 100644
--- a/ObjectTypes/HexahedralMesh/PluginFunctionsHexahedralMesh.cc
+++ b/ObjectTypes/HexahedralMesh/PluginFunctionsHexahedralMesh.cc
@@ -108,7 +108,7 @@ bool getObject( int _identifier, HexahedralMeshObject*& _object ) {
   BaseObjectData* object = 0;
   PluginFunctions::getObject(_identifier,object);
 
-  _object = hexahedralMeshObject(object);
+  _object = object ? hexahedralMeshObject(object) : nullptr;
   return ( _object != 0 );
 }
 
diff --git a/ObjectTypes/PolyhedralMesh/PluginFunctionsPolyhedralMesh.cc b/ObjectTypes/PolyhedralMesh/PluginFunctionsPolyhedralMesh.cc
index cb9bec28437f6c6b04a7e794477d407a787da332..cef71dfe5c8de81b4d98b4d6c222f12d109a725f 100644
--- a/ObjectTypes/PolyhedralMesh/PluginFunctionsPolyhedralMesh.cc
+++ b/ObjectTypes/PolyhedralMesh/PluginFunctionsPolyhedralMesh.cc
@@ -108,7 +108,7 @@ bool getObject( int _identifier, PolyhedralMeshObject*& _object ) {
   BaseObjectData* object = 0;
   PluginFunctions::getObject(_identifier,object);
 
-  _object = polyhedralMeshObject(object);
+  _object = object ? polyhedralMeshObject(object) : nullptr;
   return ( _object != 0 );
 }
 
diff --git a/ObjectTypes/TetrahedralMesh/PluginFunctionsTetrahedralMesh.cc b/ObjectTypes/TetrahedralMesh/PluginFunctionsTetrahedralMesh.cc
index dcfa495e85a85e458da93b5b34edb0102c97eb1c..128cca8f8d23446d44a2a33b63a5bc069328caca 100644
--- a/ObjectTypes/TetrahedralMesh/PluginFunctionsTetrahedralMesh.cc
+++ b/ObjectTypes/TetrahedralMesh/PluginFunctionsTetrahedralMesh.cc
@@ -102,7 +102,7 @@ bool getObject( int _identifier, TetrahedralMeshObject*& _object ) {
   BaseObjectData* object = 0;
   PluginFunctions::getObject(_identifier,object);
 
-  _object = tetrahedralMeshObject(object);
+  _object = object ? tetrahedralMeshObject(object) : nullptr;
   return ( _object != 0 );
 }