NullPointerException

Posted by: plympton

NullPointerException - 26/11/2004 17:01

Invariably, I'll get this error in the log, forcing me to restart Trio daily. Any idea what it is? The symptoms are the display stops refreshing (otherwise it generally works, but navigation is impossible). I've got the latest Trio build installed on a Red Hat Linux 9.0 machine with Sun's Java (was latest at the time I installed it.. - looks like j2re1.4.2_04.

Here's the error:
java.lang.NullPointerException
at trio.gui.TRioRepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at trio.gui.TRioWindowManager.dispatchKey(Unknown Source)
at trio.gui.TRioWindowManager.dispatchKey(Unknown Source)
at trio.gui.TRioKeyDispatcher.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at trio.player.TRioPlayerFrame.adjustVolume(Unknown Source)
at trio.player.TRioPlayerFrame$1.keyPressed(Unknown Source)
at java.awt.Component.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at trio.gui.TRioKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at trio.gui.TRioKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at trio.gui.TRioWindowManager.dispatchKey(Unknown Source)
at trio.gui.TRioWindowManager.dispatchKey(Unknown Source)
at trio.gui.TRioKeyDispatcher.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

-Dan
Posted by: pauln

Re: NullPointerException - 26/11/2004 19:09

I've had a quick look at the code where this is happening. I'm a bit puzzled as to what's going wrong - but quite obviously it is.

Please PM me with your email address and I'll send you a version with some extra debugging built into it.

Cheers
Paul