BZ #16: Jmol crashes with a NullPointerException in javax.swing.DefaultListCellRenderer.getListCellRendererComponent

Status fields:

creation_ts:2006-02-04 20:25
component:unspecified
version:0.94
rep_platform:All
op_sys:Linux
bug_status:CLOSED
resolution:FIXED
reporter:egon.willighagen@gmail.com
When running doing cacao -jar Jmol.jar 10.00.48 from
http://prdownloads.sourceforge.net/jmol/jmol-10.00.48-binary.tar.gz?download, I
get this stack trace and Jmol freezes:

uncaught exception: java.lang.NullPointerException
java.lang.NullPointerException
   at javax.swing.DefaultListCellRenderer.getListCellRendererComponent
(DefaultListCellRenderer.java:96)
   at javax.swing.plaf.basic.BasicListUI.updateLayoutState (BasicListUI.java:860)
   at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState
(BasicListUI.java:899)
   at javax.swing.plaf.basic.BasicListUI.getCellBounds (BasicListUI.java:715)
   at javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged
(BasicListUI.java:177)
   at javax.swing.JList.fireSelectionValueChanged (JList.java:976)
   at javax.swing.JList$ListListener.valueChanged (JList.java:1010)
   at javax.swing.DefaultListSelectionModel.fireValueChanged
(DefaultListSelectionModel.java:665)
   at javax.swing.DefaultListSelectionModel.setSelectionInterval
(DefaultListSelectionModel.java:566)
   at javax.swing.JList.setSelectedIndex (JList.java:1270)
   at org.openscience.jmol.app.RecentFilesDialog.<init> (RecentFilesDialog.java:75)
   at org.openscience.jmol.app.Jmol.<init> (Jmol.java:182)
   at org.openscience.jmol.app.Jmol.getJmol (Jmol.java:342)
   at org.openscience.jmol.app.Jmol.main (Jmol.java:431)
Exception in thread "main" java.lang.NullPointerException
   at org.openscience.jmol.app.Jmol.main (Jmol.java:461)

This does not happen with Sun JVMs. But it does happen too with jamvm, so I
think it's really a Classpath bug.

Comment #1 by twisti@complang.tuwien.ac.at on 2006-05-26 13:43:58

I close that bug, as it seems to work.  Just tried on powerpc-linux.

Comment #2 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:10:03

Created an attachment (id=23)
01

Comment #3 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:10:18

Created an attachment (id=24)
1

Comment #4 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:10:35

Created an attachment (id=25)
2

Comment #5 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:10:50

Created an attachment (id=26)
3

Comment #6 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:11:05

Created an attachment (id=27)
4

Comment #7 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:11:18

Created an attachment (id=28)
5

Comment #8 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:11:33

Created an attachment (id=29)
6

Comment #9 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:11:48

Created an attachment (id=30)
7

Comment #10 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:12:04

Created an attachment (id=31)
8

Comment #11 by Carl.C.Holifield@tfrmovies.com on 2007-10-20 13:12:17

Created an attachment (id=32)
9