From bceba0ee1c30b6cfcf54d973c0bf25e09b5ce74d Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 13 Dec 2008 01:38:20 +0000 Subject: Fixed NullPointerException during GLDrawable creation on X11 platforms git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1817 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/GLDrawableImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/classes/com/sun/opengl/impl/GLDrawableImpl.java') diff --git a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java index 78b863a79..9ae42906f 100644 --- a/src/classes/com/sun/opengl/impl/GLDrawableImpl.java +++ b/src/classes/com/sun/opengl/impl/GLDrawableImpl.java @@ -50,7 +50,8 @@ public abstract class GLDrawableImpl implements GLDrawable { boolean realized) { this.factory = factory; this.component = comp; - this.requestedCapabilities = (GLCapabilities) requestedCapabilities.clone(); + this.requestedCapabilities = + (requestedCapabilities == null) ? null : (GLCapabilities) requestedCapabilities.clone(); this.realized = realized; } -- cgit v1.2.3