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

[macosx] NullPointerException in getBufferStrategy()

XMLWordPrintable

    • b13
    • generic
    • os_x
    • Verified

        http://java.net/jira/browse/MACOSX_PORT-249 submitted 2011/08/09 by Alexander Petrov
        1)For Canvas call createBufferStrategy(2)
        2)call getBufferStrategy()
        Result:
        java.lang.NullPointerException
        at java.awt.Component.getDrawGraphics(Component.java:4115)
        at RenderingToCachedGraphicsTest.runTest(RenderingToCachedGraphicsTest.java:92)
        at RenderingToCachedGraphicsTest.access./Mac2.bugs00(RenderingToCachedGraphicsTest.java:51)
        at RenderingToCachedGraphicsTest.paint(RenderingToCachedGraphicsTest.java:71)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
        at sun.awt.RepaintArea.paint(RepaintArea.java:240)
        at sun.lwawt.LWComponentPeer.handleJavaPaintEvent(LWComponentPeer.java:980)
        at sun.lwawt.LWComponentPeer.handleEvent(LWComponentPeer.java:945)
        at java.awt.Component.dispatchEventImpl(Component.java:4936)
        at java.awt.Component.dispatchEvent(Component.java:4686)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
        at java.awt.EventQueue.access./Mac2.bugs00(EventQueue.java:101)
        at java.awt.EventQueue.run(EventQueue.java:666)
        at java.awt.EventQueue.run(EventQueue.java:664)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue.run(EventQueue.java:680)
        at java.awt.EventQueue.run(EventQueue.java:678)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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)
        Build: b202
        Keywords: test-fail-macos
        Tests failed (Regression):
        sun/java2d/DirectX/RenderingToCachedGraphicsTest/RenderingToCachedGraphicsTest.java

              serb Sergey Bylokhov
              vasya Vassili Igouchkine (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: