Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

applet NullPointerException

I've been working on a game in an applet. In Eclipse it has been working completely fine, but when I sign it and load it in my browser, it throws a NullPointerException, without any further information. What can I do?

like image 802
Nathan Sikora Avatar asked Jul 01 '26 01:07

Nathan Sikora


1 Answers

You don't give very much information here, but I can make a guess that you are calling getAppletContext and it is returning null, because the browser's java implementation is broken. Try the applet viewer, and try a different browser, and see if it works there.

like image 166
tbodt Avatar answered Jul 03 '26 15:07

tbodt