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

NPE in FontManager with the baseline changes (b36)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • client-libs
    • b39
    • x86, sparc
    • linux, solaris_10, windows_xp

      There is a post on the mustang forum complaining about an NPE
      in b36 while running Netbeans 4.1

      java.lang.NullPointerException
      at sun.font.FontManager.getFont2D(Native Method)
      at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:330)
      at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:323)
      at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:271)
      at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:232)
      at java.awt.Component.getFontMetrics(Component.java:2695)
      at javax.swing.JComponent.getFontMetrics(JComponent.java:1652)
      at javax.swing.plaf.basic.BasicLabelUI.getBaseline(BasicLabelUI.java:281)
      at javax.swing.JComponent.getBaseline(JComponent.java:2585)
      at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1289)
      at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(BasicComboBoxUI.java:873)
      at javax.swing.plaf.basic.BasicComboBoxUI.getPreferredSize(BasicComboBoxUI.java:863)
      at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.getPreferredSize(WindowsComboBoxUI.java:84)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1687)
      at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:694)
      at java.awt.Container.preferredSize(Container.java:1559)
      at java.awt.Container.getPreferredSize(Container.java:1544)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1689)
      at java.awt.BorderLayout.layoutContainer(BorderLayout.java:790)
      at java.awt.Container.layout(Container.java:1402)
      at java.awt.Container.doLayout(Container.java:1391)
      at java.awt.Container.validateTree(Container.java:1474)
      at java.awt.Container.validateTree(Container.java:1481)
      at java.awt.Container.validateTree(Container.java:1481)
      at java.awt.Container.validate(Container.java:1449)
      at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:599)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:589)
      [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:247)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:168)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:162)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:154)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:115)

      Here is the post :
      http://forums.java.net/jive/thread.jspa?threadID=700&tstart=0
      ###@###.### 2005-05-17 21:44:28 GMT

            svioletsunw Scott Violet (Inactive)
            bino Bino George
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: