Nifty MessageBox

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

Which line/statement throws the exception?; throws exception

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

Post the stack trace for exceptions. Always.

1 Like