fmorbini / scxmlgui

A graphical user interface for editing SCXML finite state machines.
Other
105 stars 37 forks source link

SCXML Listener Nullpointer exception after reconnect #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checked with svn HEAD version
2. load scxml and start SCXML listener 
3. the first time it works like espected (i am only sending 0 or 1 state 
activation/deactivation events)
4. stop and restart 
5. reconnect from client
6. the SCXML listerner listview fills with the events but highlighting  of 
states does not happen anymore  

What is the expected output? What do you see instead?

No highlighting with green borders

What version of the product are you using? On what operating system?

latest SVN head on main trunk

Please provide any additional information below.

java.lang.NullPointerException
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.resetAllSCXMLEventExecutions(SCXMLListener.java:593)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.valueChanged(SCXMLListener.java:210)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1798)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1812)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2212)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.addEvent(SCXMLListener.java:582)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener$SCXMLSocketListener.run(SCXMLListener.java:543)
java.lang.NullPointerException
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.resetAllSCXMLEventExecutions(SCXMLListener.java:593)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.valueChanged(SCXMLListener.java:210)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1798)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1812)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2212)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.addEvent(SCXMLListener.java:582)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener$SCXMLSocketListener.run(SCXMLListener.java:543)
java.lang.NullPointerException
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.resetAllSCXMLEventExecutions(SCXMLListener.java:593)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.valueChanged(SCXMLListener.java:210)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1798)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1812)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2212)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.addEvent(SCXMLListener.java:582)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener$SCXMLSocketListener.run(SCXMLListener.java:543)
java.lang.NullPointerException
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.resetAllSCXMLEventExecutions(SCXMLListener.java:593)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.valueChanged(SCXMLListener.java:210)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1798)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1812)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2212)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.addEvent(SCXMLListener.java:582)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener$SCXMLSocketListener.run(SCXMLListener.java:543)
java.lang.NullPointerException
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.resetAllSCXMLEventExecutions(SCXMLListener.java:593)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.valueChanged(SCXMLListener.java:210)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1798)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1812)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
    at javax.swing.JList.setSelectedIndex(JList.java:2212)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener.addEvent(SCXMLListener.java:582)
    at com.mxgraph.examples.swing.editor.scxml.listener.SCXMLListener$SCXMLSocketListener.run(SCXMLListener.java:543)

Original issue reported on code.google.com by sfeuerst...@gmail.com on 11 Jul 2012 at 12:35

GoogleCodeExporter commented 9 years ago
fixed in r143.
thanks for reporting it.

Original comment by fmorbini on 11 Jul 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Thanks!

Works great now!

Original comment by sfeuerst...@gmail.com on 12 Jul 2012 at 7:09