EA-35641: IndexOutOfBoundsException in MavenResumeAction

This commit is contained in:
Sergey Evdokimov
2012-04-18 15:54:28 +04:00
parent 990dde0d1c
commit d384b6c5a5
@@ -143,7 +143,7 @@ public class MavenResumeAction extends AnAction {
case STATE_WAIT_FOR_BUILD:
if (textWithoutInfo.startsWith("Building ")) {
String projectName = textWithoutInfo.substring("Building ".length());
if (myBuildingProjectIndex > myMavenProjectNames.size() ||
if (myBuildingProjectIndex >= myMavenProjectNames.size() ||
!projectName.startsWith(myMavenProjectNames.get(myBuildingProjectIndex))) {
myState = STATE_WTF;
log(String.format("Invalid project building order. Defined order: %s, error index: %d, invalid line: %s",