Skip to content

Commit 3359ec8

Browse files
committed
Reconcile: fix java.lang.ArrayIndexOutOfBoundsException
1 parent f9bba6e commit 3359ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/apache/cloudstack/command/ReconcileCommandServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ public void processAnswers(long requestSeq, Command[] commands, Answer[] answers
678678
if (commands.length != answers.length) {
679679
logger.error(String.format("Incorrect number of commands (%s) and answers (%s)", commands.length, answers.length));
680680
}
681-
for (int i = 0; i < commands.length; i++) {
681+
for (int i = 0; i < answers.length; i++) {
682682
Command command = commands[i];
683683
Answer answer = answers[i];
684684
if (command.isReconcile() && answer.getResult()) {

0 commit comments

Comments
 (0)