Skip to content

Commit

Permalink
Attributes.removePrivateAttributes() trows
Browse files Browse the repository at this point in the history
ArrayIndexOutOfBoundsException dcm4che#392
  • Loading branch information
nroduit committed Dec 24, 2018
1 parent b5f9f00 commit 34dabbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3267,7 +3267,7 @@ public int removePrivateAttributes() {
int size1 = size;
for (int i = 0; i < size1; i++) {
int j = i;
while (TagUtils.isPrivateGroup(tags[j]) && j < size1)
while (j < size1 && TagUtils.isPrivateGroup(tags[j]))
j++;
if (j > i) {
int len = size1 - j;
Expand Down

0 comments on commit 34dabbb

Please sign in to comment.