NullPointerException error

I deleted this part of the code and now the code runs but the images wont load.

for (int i=0; i<5; i++) {
    image(left[i], 50, 200, 250, 400);
    image(right[i], 300, 200, 250, 400);
  }