Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5088263

swing-mustang does not work with NetBeans 3.6 (NPE in DefaultTreeCellRenderer)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 6
    • client-libs
    • None

      I tried to run NetBeans 3.6 under the 2004-08-17 nightly build of the swing-mustang workspace. However, the GUI comes up largely unpainted, and a dialog box appears with the following exception:

      java.lang.NullPointerException
      at javax.swing.tree.DefaultTreeCellRenderer.paint(DefaultTreeCellRenderer.java:404)
      at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134)
      at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1404)
      at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1189)
      at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
      at javax.swing.JComponent.paintComponent(JComponent.java:755)
      at javax.swing.JComponent.paint(JComponent.java:1018)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JViewport.paint(JViewport.java:739)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
      at javax.swing.JComponent.paintChildren(JComponent.java:855)
      at javax.swing.JComponent.paint(JComponent.java:1027)
      at javax.swing.JComponent.paintToOffscreen(JComponent.java:5016)
      at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:910)
      at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:869)
      at javax.swing.RepaintManager.paint(RepaintManager.java:789)
      at javax.swing.JComponent._paintImmediately(JComponent.java:4965)
      at javax.swing.JComponent.paintImmediately(JComponent.java:4773)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:466)
      [catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      ---
      It looks like the line question was modified in delta 1.53 to fix 4991609.
      ###@###.### 2004-08-17

            shickeysunw Shannon Hickey (Inactive)
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: