Why do I get a NullPointerException

Hello @LauraDob,

Please format your code as a courtesy to this forum:
https://discourse.processing.org/faq#format-your-code

You did not load an image and are trying to display it so it gives an error.

Here is an MCVE:

Try displaying one of these images which you have loaded:

images[0] = loadImage("fase1.jpg");
images[1] = loadImage("fase2.jpg");

Reference:
Why do I get a NullPointerException? - Processing 2.x and 3.x Forum

I do not have a "COM 5" and I get a RuntimeException for that:

:)