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

NPE in SwingUtilities2.drawChars after JDK-6302464

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • client-libs
    • b82
    • generic
    • generic

        The fix of JDK-6302464 assumes that the component is always non null, it is not true.
        Netbeans during profile session is unusable.
        java.lang.NullPointerException
        at sun.swing.SwingUtilities2.drawChars(SwingUtilities2.java:768)
        at javax.swing.text.Utilities.drawTabbedText(Utilities.java:187)
        at javax.swing.text.Utilities.drawTabbedText(Utilities.java:106)
        at javax.swing.text.Utilities.drawTabbedText(Utilities.java:84)
        at org.netbeans.core.output2.ExtPlainView.drawText(ExtPlainView.java:141)
        at org.netbeans.core.output2.ExtPlainView.drawUnselectedText(ExtPlainView.java:162)
        at javax.swing.text.PlainView.drawElement(PlainView.java:113)
        at javax.swing.text.PlainView.drawLine(PlainView.java:82)
        at javax.swing.text.PlainView.paint(PlainView.java:311)
        at org.netbeans.core.output2.ExtPlainView.paint(ExtPlainView.java:100)
        at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1475)
        at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:751)
        at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:909)
        at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:888)
        at javax.swing.JComponent.paintComponent(JComponent.java:780)
        at javax.swing.JComponent.paint(JComponent.java:1056)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JViewport.paint(JViewport.java:731)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at org.netbeans.core.output2.ui.AbstractOutputPane.paint(AbstractOutputPane.java:534)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:994)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:584)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at org.netbeans.core.windows.view.ui.MainWindow$1.paint(MainWindow.java:189)
        at javax.swing.JComponent.paintChildren(JComponent.java:889)
        at javax.swing.JComponent.paint(JComponent.java:1065)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:584)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5255)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1609)
        at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1532)
        at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:262)
        at javax.swing.RepaintManager.paint(RepaintManager.java:1302)
        at javax.swing.JComponent._paintImmediately(JComponent.java:5203)
        at javax.swing.JComponent.paintImmediately(JComponent.java:5014)
        at javax.swing.RepaintManager$4.run(RepaintManager.java:846)
        at javax.swing.RepaintManager$4.run(RepaintManager.java:829)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:829)
        at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:804)
        at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:753)
        at javax.swing.RepaintManager.access$1200(RepaintManager.java:65)
        at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1762)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:712)
        at java.awt.EventQueue$3.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)

              alexsch Alexandr Scherbatiy
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: