Execution of build is in an endless loop

ArrayIndexOutOfBoundsException is clearly an array limit error in the code.