Page 1 of 1

nullpointer exception when putting stuff in stall

PostPosted: Sun Aug 11, 2013 9:06 pm
by martinuzz
I had just set price to 16s, grabbed a decorative woodcarving on cursor..
When I clicked on the empty slot it was supposed to go into, I got this null pointer exception

Code: Select all
java.lang.RuntimeException: java.lang.NullPointerException
   at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
   at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:100)
   at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205)
   at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
   at javax.media.opengl.Threading.invoke(Threading.java:191)
   at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:483)
   at haven.HavenPanel.uglyjoglhack(HavenPanel.java:394)
   at haven.HavenPanel.run(HavenPanel.java:426)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at haven.ItemInfo.catimgs(ItemInfo.java:117)
   at Shopbox.longtip(Shopbox.java:115)
   at Shopbox.tooltip(Shopbox.java:124)
   at haven.Widget.tooltip(Widget.java:827)
   at haven.Window.tooltip(Window.java:287)
   at haven.Widget.tooltip(Widget.java:827)
   at haven.Widget.tooltip(Widget.java:827)
   at haven.HavenPanel.redraw(HavenPanel.java:305)
   at haven.HavenPanel$1.display(HavenPanel.java:92)
   at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:588)
   at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:572)
   at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:1054)
   at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1034)
   at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:909)
   at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:1065)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)

Re: nullpointer exception when putting stuff in stall

PostPosted: Sun Aug 11, 2013 10:29 pm
by RonPaulFTW
Looks like the devs are reusing some of their haven code in salem - that or they just name code in the salem code base after haven.

Re: nullpointer exception when putting stuff in stall

PostPosted: Sun Aug 11, 2013 10:49 pm
by DarkNacht
Is it repeatable? If it is have you tried the basics, deleting your cache and re-downloading the client?
RonPaulFTW wrote:Looks like the devs are reusing some of their haven code in salem.
I think that is an understatement.

Re: nullpointer exception when putting stuff in stall

PostPosted: Mon Aug 12, 2013 7:17 am
by MagicManICT
RonPaulFTW wrote:Looks like the devs are reusing some of their haven code in salem - that or they just name code in the salem code base after haven.


The core of the code is either ported directly from Haven or an update of it, both for the client and server back-end. Of course, game information is pretty much unique here given the major differences in items and such. You'd be surprised at how often code is reused between versions. Some code in *nix versions dates back to the 1960s. Why reinvent the wheel?

As far as the error goes, yeah, go with the usualls that DarkNacht mentions. If these don't fix it, report your client, OS, and Java, including versions. This was (still is if not fixed) a frequent error with Ender's client and I've not seen it reported for the original. I haven't really tracked the error or any fixes/workarounds.