The problem with NullPointerException

A code

A error

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
at com.jme3.material.Material.(
at ru.tec.object.Cube.paint(
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(

Help pls me :smile:

I’m not sure what you want help with. It’s a null-pointer exception. Use hot-debugging on the line that causes the null pointer to find out what is null, and ammend your code accordingly.

Tried to debug that - it does not work

We can’t see any of your code. What does not work when debugging?

If only there was a way to know what’s on line 120 of the…
oh wait!

Same thing. I’m trying to catch flies where a mistake, but nothing is clear.

Your bug is here: