From beb976a4c88b0271694f43499017da08bf1249b2 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 12 Dec 2019 15:00:17 +0100 Subject: [PATCH] #3309 BBTK Bug New Normal - Bug gdcmvtk - GetXCoherentInfoGdcmReader std - FilesFromDirectory --- .../gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.cxx b/packages/gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.cxx index 6c81059..aeb0f78 100644 --- a/packages/gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.cxx +++ b/packages/gdcmvtk/src/bbgdcmvtkGetXCoherentInfoGdcmReader.cxx @@ -107,6 +107,8 @@ printf("EED GetXCoherentInfoGdcmReader::Process 1\n"); bbSetOutputOut( CreateDefaultImage() ); return; } // if res + +try { // Get info from the first image file int i; std::vector v_iop; @@ -153,7 +155,7 @@ printf("EED GetXCoherentInfoGdcmReader::Process 5\n"); if (l==NULL) { - printf("EED GetXCoherentInfoGdcmReader::Process Warnning not coherent list/file \n"); + printf("EED GetXCoherentInfoGdcmReader::Process Warnning (1) not coherent list/file \n"); return; } printf("EED GetXCoherentInfoGdcmReader::Process 6\n"); @@ -211,6 +213,11 @@ printf("EED GetXCoherentInfoGdcmReader::Process 6\n"); reader->Update(); reader->GetOutput(); bbSetOutputOut( reader->GetOutput() ); +} catch (...) { + printf("EED GetXCoherentInfoGdcmReader::Process Warnning (2) not coherent list/file \n"); + return; +} // try + } #endif // endif USE_GDCM -- 2.47.1