NullPointerException when loading an image

I think that you have to do the same thing with blocks
prior to filling it

blocks=new PImage[....

1 Like