Bug 290 - GLJPanel throws NullPointerExceptions with Java 2D/JOGL bridge
Summary: GLJPanel throws NullPointerExceptions with Java 2D/JOGL bridge
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
Depends on:
Reported: 2007-03-23 12:10 CET by Sven Gothel
Modified: 2010-03-24 07:50 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:50:21 CET

---- Reported by kbr 2007-03-23 00:10:22 ----

User GKW reports that:

> I found a couple minor bugs in GLJPanel.  Calling getAutoSwapBufferMode and
> setAutoSwapBufferMode if you are using the j2d/opengl pipeline you will throw
> null pointer exceptions.  Currently they both just check the
> hardwareAccelerationDisabled flag and don't check to see if oglPipelineEnabled
> is true.

---- Additional Comments From kbr 2007-04-16 22:33:37 ----

Fixed NPEs in setAutoSwapBufferMode and swapBuffers if Java 2D / JOGL
bridge is enabled. These methods are essentially no-ops on the
GLJPanel anyway because of how the copying to the Swing rendering area
(be it a BufferedImage or the Swing back buffer) is done.

--- Bug imported by sgothel@jausoft.com 2010-03-24 07:50 EDT  ---

This bug was previously known as _bug_ 290 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=290