]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
0023460: EDF - problem with return of MG-HYBRID V8_4_0a1 V8_4_0a2
authorvsr <vsr@opencascade.com>
Thu, 6 Jul 2017 08:18:51 +0000 (11:18 +0300)
committervsr <vsr@opencascade.com>
Thu, 6 Jul 2017 08:18:51 +0000 (11:18 +0300)
src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx

index c477cbe76e8b9c8d4975d70811c28bbd069e2da0..f7ea3f6a7cf2abc102be4f0711f43d5a10757ce6 100644 (file)
@@ -353,7 +353,9 @@ static bool readGMFFile(MG_HYBRID_API*                          MGOutput,
 
   // if imprinting, the original mesh faces are modified
   // => we clear all the faces to retrieve them from Hybrid output mesh.
-  std::vector<int> facesWithImprinting = theAlgo->getHyp()->GetFacesWithImprinting();
+  std::vector<int> facesWithImprinting;
+  if (theAlgo->getHyp()) 
+    facesWithImprinting = theAlgo->getHyp()->GetFacesWithImprinting();
 
   if ( ! facesWithImprinting.empty() ) {
 #ifdef _DEBUG_