8000 System.ArgumentNullException in ReplaceUID, DicomAnonymizer.cs · Issue #1308 · fo-dicom/fo-dicom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
System.ArgumentNullException in ReplaceUID, DicomAnonymizer.cs #1308
Closed
@jeryshn

Description

@jeryshn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0