Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes.removePrivateAttributes() trows ArrayIndexOutOfBoundsException #392

Closed
nroduit opened this issue Dec 24, 2018 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@nroduit
Copy link
Member

nroduit commented Dec 24, 2018

With multiframe containing private tags:

deidentify --retain-uid -sPatientName=ANONYMIZED -sPatientID=0815 -- multiframe.dcm out.dcm
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 11
at org.dcm4che3.deident.DeIdentifier.deidentifyItem(DeIdentifier.java:535)
at org.dcm4che3.deident.DeIdentifier.deidentify(DeIdentifier.java:454)
at org.dcm4che3.tool.deidentify.Deidentify.transcode(Deidentify.java:187)
at org.dcm4che3.tool.deidentify.Deidentify.mtranscode(Deidentify.java:167)
at org.dcm4che3.tool.deidentify.Deidentify.main(Deidentify.java:123)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 11
at org.dcm4che3.data.Attributes.removePrivateAttributes(Attributes.java:3245)
at org.dcm4che3.deident.DeIdentifier.deidentifyItem(DeIdentifier.java:516)
at org.dcm4che3.deident.DeIdentifier.access$100(DeIdentifier.java:54)
at org.dcm4che3.deident.DeIdentifier$1.visit(DeIdentifier.java:530)
at org.dcm4che3.data.Attributes.accept(Attributes.java:2545)
at org.dcm4che3.data.Attributes.accept(Attributes.java:2538)
at org.dcm4che3.deident.DeIdentifier.deidentifyItem(DeIdentifier.java:525)
... 4 more

nroduit added a commit to nroduit/dcm4che that referenced this issue Dec 24, 2018
@gunterze gunterze self-assigned this Jan 8, 2019
@gunterze gunterze added the bug label Jan 8, 2019
@gunterze gunterze added this to the 5.15.1 milestone Jan 8, 2019
gunterze added a commit that referenced this issue Jan 8, 2019
Attributes.removePrivateAttributes() trows ArrayIndexOutOfBoundsException #392
@gunterze gunterze closed this as completed Jan 8, 2019
nroduit added a commit to nroduit/dcm4che that referenced this issue Mar 12, 2019
patrick-peer pushed a commit to patrick-peer/dcm4che that referenced this issue Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants