From: vsr Date: Thu, 6 Jul 2017 08:18:51 +0000 (+0300) Subject: 0023460: EDF - problem with return of MG-HYBRID X-Git-Tag: V8_4_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d1220f461b24986bf6e654bb51808ee779b83be5;p=plugins%2Fhybridplugin.git 0023460: EDF - problem with return of MG-HYBRID --- diff --git a/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx b/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx index c477cbe..f7ea3f6 100644 --- a/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx +++ b/src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx @@ -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 facesWithImprinting = theAlgo->getHyp()->GetFacesWithImprinting(); + std::vector facesWithImprinting; + if (theAlgo->getHyp()) + facesWithImprinting = theAlgo->getHyp()->GetFacesWithImprinting(); if ( ! facesWithImprinting.empty() ) { #ifdef _DEBUG_