Skip to content

Commit

Permalink
#3 ArrayIndexOutOfBoundsException when element number changed in SC
Browse files Browse the repository at this point in the history
  • Loading branch information
balazs-zsoldos committed Apr 14, 2015
1 parent 2e537d5 commit 53bdd8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ELEMENT[] generateUpgradedElementArray(final KEY[] newKeys,
} else {
Integer position = previousKeysWithPosition.get(newKey);
if (position != null) {
result[i] = previousElements[i];
result[i] = previousElements[position];
} else {
result[i] = createNewElement(newKey);
}
Expand Down

0 comments on commit 53bdd8e

Please sign in to comment.