aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-12-13 01:38:20 +0000
committerKenneth Russel <[email protected]>2008-12-13 01:38:20 +0000
commitbceba0ee1c30b6cfcf54d973c0bf25e09b5ce74d (patch)
tree28e2958cfdd441134a92cdeca37fe5d9a13e4fb1 /src/classes/com/sun
parentbc7dc7d61ba7eac6c943de12efb5460d4becdc77 (diff)
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
Diffstat (limited to 'src/classes/com/sun')
-rw-r--r--src/classes/com/sun/opengl/impl/GLDrawableImpl.java3
1 files changed, 2 insertions, 1 deletions
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;
}