Nifty MessageBox

hi friends,
I’m wondering how to use nifty MessageBox.
here is my code that throw NullPointerException!
[java]
NiftyJmeDisplay disp = new NiftyJmeDisplay(assetManager,inputManager,audioRenderer,guiViewPort);
Nifty nifty = disp.getNifty();
nifty.fromXml(“Interface/Nifty/HelloJme.xml”, “start”, s3);
guiViewPort.addProcessor(disp);
MessageBox mess = new MessageBox(nifty, MessageBox.MessageType.ERROR,“Configuration Not Set!”,“Ok!”);
mess.show();
[/java]

Which line/statement throws the exception?

Mess.show(); throws exception

Just FYI: a NullPointerException without the stack trace includes is not very useful.

Post the stack trace for exceptions. Always.

1 Like