When the current item is -1, then the loop will infinitely repeat, constantly setting i to zero and never exiting.