From bc83323637d010e5a7ec78943352f2e0d1b77efa Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 28 Jun 2013 15:55:55 +0000 Subject: [PATCH] Little debug thanks to V7_main dev. --- src/MEDLoader/MEDFileField.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 562dbef5c..c180c887f 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -4654,7 +4654,10 @@ MEDFileAnyTypeField1TSWithoutSDA *MEDFileField1TSWithoutSDA::deepCpy() const thr void MEDFileField1TSWithoutSDA::setArray(DataArray *arr) throw(INTERP_KERNEL::Exception) { if(!arr) - _arr=0; + { + _arr=0; + return ; + } DataArrayDouble *arrC=dynamic_cast(arr); if(!arrC) throw INTERP_KERNEL::Exception("MEDFileField1TSWithoutSDA::setArray : the input not null array is not of type DataArrayDouble !"); @@ -4817,7 +4820,10 @@ MEDFileAnyTypeField1TSWithoutSDA *MEDFileIntField1TSWithoutSDA::deepCpy() const void MEDFileIntField1TSWithoutSDA::setArray(DataArray *arr) throw(INTERP_KERNEL::Exception) { if(!arr) - _arr=0; + { + _arr=0; + return ; + } DataArrayInt *arrC=dynamic_cast(arr); if(!arrC) throw INTERP_KERNEL::Exception("MEDFileIntField1TSWithoutSDA::setArray : the input not null array is not of type DataArrayInt !"); -- 2.39.2