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

SWAT: SwingSet2 threw NullPointerException in jdk1.7.0-b112 (randomly, not always)

XMLWordPrintable

    • b118
    • x86
    • windows_xp
    • Verified

      Java Version: jdk1.7.0-ea-b112 SWAT build
      Platform: WindowsXP pro

      Problem:
      When launch SwingSet2 demo with java look and feel, and Themes set by default which is Ocean, when you click ColorChooser Demo, it threw exceptions, I cannot always reproduce the exception, only reproduce two times out of 5.

      The exceptions as below:

      C:\jdk1.7.0>bin\java -jar demo\jfc\SwingSet2\*.jar
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at BezierAnimationPanel.paint(BezierAnimationPanel.java:333)
              at javax.swing.JComponent.paintChildren(JComponent.java:887)
              at javax.swing.JComponent.paint(JComponent.java:1063)
              at javax.swing.JComponent.paintChildren(JComponent.java:887)
              at javax.swing.JComponent.paint(JComponent.java:1063)
              at javax.swing.JComponent.paintChildren(JComponent.java:887)
              at javax.swing.JComponent.paint(JComponent.java:1063)
              at javax.swing.JComponent.paintChildren(JComponent.java:887)
              at javax.swing.JComponent.paint(JComponent.java:1063)
              at javax.swing.JComponent.paintToOffscreen(JComponent.java:5194)
              at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManag
      er.java:295)
              at javax.swing.RepaintManager.paint(RepaintManager.java:1206)
              at javax.swing.JComponent._paintImmediately(JComponent.java:5142)
              at javax.swing.JComponent.paintImmediately(JComponent.java:4952)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:770)

              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728)

              at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:6
      77)
              at javax.swing.RepaintManager.access$700(RepaintManager.java:59)
              at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java
      :1621)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:660)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
      ad.java:211)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
      java:128)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:117)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)

              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)

              at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

      How to reproduce the problem:
      1, Using b112 launch the SwingSet2 demo by:
      bin\java -jar demo\jfc\SwingSet2\*.jar
      2, select Java Look And Feel under Look & Feel, click each tabs, and when click ColorChooser Demo, some times, it threw exceptions.

            alexp Alexander Potochkin (Inactive)
            ttzhang Tao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: