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

FIX: check for null length patient names

parent a0c73232
......@@ -1215,7 +1215,14 @@ void DICOMAppHelper::PatientNameCallback(DICOMParser *,
delete this->PatientName;
}
this->PatientName = new dicom_stl::string((char*) val);
if (val)
{
this->PatientName = new dicom_stl::string((char*) val);
}
else
{
this->PatientName = new dicom_stl::string();
}
}
void DICOMAppHelper::StudyUIDCallback(DICOMParser *,
......
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