From ef03fc34db849c864b1ae7f50c8442e125834f84 Mon Sep 17 00:00:00 2001 From: Thomas BAUDIER Date: Thu, 5 Mar 2020 17:42:46 +0100 Subject: [PATCH] Debug RTStruct conversion with empty struc --- common/clitkDicomRT_ROI.cxx | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.47.1