Closed
Description
Describe the bug
System.ArgumentNullException
To Reproduce
DicomAnonymizer.SecurityProfile securityProfile = DicomAnonymizer.SecurityProfile.LoadProfile(null, (DicomAnonymizer.SecurityProfileOptions)15);
var _anonymizer = new DicomAnonymizer(securityProfile);
_anonymizer.AnonymizeInPlace(comprF);
Expected behavior
Null Value should be considered. Maybe add or update the following code:
DicomAnonymizer.cs 297
if (old == null)
{
uid = DicomUIDGenerator.GenerateDerivedFromUUID();
}
else if (ReplacedUIDs.ContainsKey(old))
Screenshots or test DICOM files
4700727518.zip
Environment
Fellow Oak DICOM version:5.0.0
OS: Windows 10
Platform:.NET5.0