JDK-6888130 : SwingSet2: Demo is not launching and throwing NPE.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u18,7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2009-10-05
  • Updated: 2011-01-19
  • Resolved: 2009-12-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u18 b03Fixed 7Fixed
Related Reports
Duplicate :  
Relates :  
Description
I was trying to launch the swingset2 demo using 6u18-b03 pit build.However, demo is not launching and throwing NPE.

I have seen this issue on all paltforms like windows vista,linux and solaris.

JDK HOME
========
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b01)
Java HotSpot(TM) Client VM (build 16.0-b09, mixed mode)


Steps to reproduce the issue
============================
1. Launch the swingset2 demo using 6u18-b03 pit build.


Error Details
==============
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.propertyChange(Basic
TabbedPaneUI.java:3515)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:339)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:276)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:297)
        at java.awt.Component.firePropertyChange(Component.java:8168)
        at javax.swing.JComponent.firePropertyChange(JComponent.java:4456)
        at javax.swing.JTabbedPane.setTitleAt(JTabbedPane.java:1300)
        at SwingSet2.setDemo(SwingSet2.java:715)
        at SwingSet2.preloadFirstDemo(SwingSet2.java:667)
        at SwingSet2.<init>(SwingSet2.java:209)
        at SwingSet2.main(SwingSet2.java:230)

Comments
EVALUATION This is a regression from the fix to the CR #6670274, the htmlViews vector must be checked for null before use
05-10-2009