From 6d1960a51484c6f088d406b071518f2c6a928e9c Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 6 Jul 2017 11:18:51 +0300 Subject: [PATCH] 0023460: EDF - problem with return of MG-HYBRID --- src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_ -- 2.39.2