From: Thomas BAUDIER Date: Thu, 5 Mar 2020 16:42:46 +0000 (+0100) Subject: Debug RTStruct conversion with empty struc X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=HEAD;p=clitk.git Debug RTStruct conversion with empty struc --- diff --git a/common/clitkDicomRT_ROI.cxx b/common/clitkDicomRT_ROI.cxx index d8af8c3..af8bee6 100644 --- a/common/clitkDicomRT_ROI.cxx +++ b/common/clitkDicomRT_ROI.cxx @@ -204,6 +204,7 @@ bool clitk::DicomRT_ROI::Read(gdcm::Item * itemInfo, gdcm::Item * itemContour) gdcm::SmartPointer & sqi2 = mContoursSequenceOfItems; if( !sqi2 || !sqi2->GetNumberOfItems() ) { + return false; } unsigned int nitems = sqi2->GetNumberOfItems();