Hello, I have in my main this code:

[java]private void createCharacter() {

Prueba prueba = new Prueba(mainGame);


where mainGame is a private static GameClient variable. looks like that:

[java]public class Prueba {

private Node rootNode;

private GameClient app;

private PhysicsSpace space;

public Prueba(GameClient app){

this.rootNode = app.getRootNode();



But when I try to run the main game client I’m getting this NullPointerException:

GRAVE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]


at org.bichomon.client.Prueba.(

at org.bichomon.client.GameClient.createCharacter(

at org.bichomon.client.GameClient.simpleInitApp(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(



Could anyone help me please? I need to call the rootNode from the GameClient java in the new

thanks in advance!

Is it that parameter app (mainGame) null?

1 Like

God… it was… I misspelled the variable in the main client

Thank you so much :stuck_out_tongue: