Commit c27d98d8 authored by Jim Miller's avatar Jim Miller
Browse files

FIX: check for invalid study id

parent c28ac793
......@@ -1253,7 +1253,14 @@ void DICOMAppHelper::StudyIDCallback(DICOMParser *,
delete this->StudyID;
}
this->StudyID = new dicom_stl::string((char*) val);
if (val)
{
this->StudyID = new dicom_stl::string((char*) val);
}
else
{
this->StudyID = new dicom_stl::string();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment