scinotes bug?
Dean S. Messing
deanm at sharplabs.com
Thu Oct 28 04:36:08 CEST 2010
I've managed to tickle what appears to be a bug.
Using my build of scilab-master-1286272063, I do the following.
>From the shell commandline:
==> scilab
Now from w/in the Scilab Console:
-->editor()
then SciNotes comes up fine. If I kill SciNotes by binking on the "Close"
button in the window decorations, it dies just fine, and I can restart
it with
-->editor()
in the Console. But if I kill SciNotes with File -> Exit then
this is printed out in the shell:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.scilab.modules.scinotes.ScilabEditorPane.updateInfosWhenFocused(Unknown Source)
at org.scilab.modules.scinotes.ScilabEditorPane$1.focusGained(Unknown Source)
at java.awt.AWTEventMulticaster.focusGained(AWTEventMulticaster.java:203)
at java.awt.Component.processFocusEvent(Component.java:6156)
at java.awt.Component.processEvent(Component.java:6023)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:901)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:513)
at java.awt.Component.dispatchEventImpl(Component.java:4502)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Furthermore I can no longer restart the editor:
-->editor()
!--error 999
editor: java.lang.reflect.InvocationTargetException
and this is printed in the shell:
Oct 27, 2010 7:33:26 PM org.scilab.modules.scinotes.SciNotes scinotes
SEVERE: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:998)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1320)
at org.scilab.modules.scinotes.SciNotes.scinotes(Unknown Source)
Caused by: java.lang.NullPointerException
at org.scilab.modules.scinotes.SciNotes.addTab(Unknown Source)
at org.scilab.modules.scinotes.SciNotes.addTab(Unknown Source)
at org.scilab.modules.scinotes.SciNotes.addEmptyTab(Unknown Source)
at org.scilab.modules.scinotes.SciNotes.openFile(Unknown Source)
at org.scilab.modules.scinotes.SciNotes$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Dean
More information about the dev
mailing list