diff --git a/tmva/sofie/src/SOFIE_common.cxx b/tmva/sofie/src/SOFIE_common.cxx index 672d77048ef38..0290eab397ad8 100644 --- a/tmva/sofie/src/SOFIE_common.cxx +++ b/tmva/sofie/src/SOFIE_common.cxx @@ -43,6 +43,10 @@ std::vector ConvertShapeToInt(const std::vector & shape){ ret_shape.clear(); break; } + catch (const std::out_of_range& ) { + ret_shape.clear(); + break; + } } else { ret_shape[i] = shape[i].dim; }