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^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d1960a51484c6f088d406b071518f2c6a928e9c;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_