aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-12-22 02:09:38 +0100
committerSven Gothel <[email protected]>2013-12-22 02:09:38 +0100
commit5077dc84c0cea1ad07b01d07e44bd2bce5a14eec (patch)
tree4d591b2dcc1d23be08b255f864dddf26562b3030 /src/test/com/jogamp/opengl
parent3d0ab3e6263dfdbb9dd0014443ad28b1c9b0c238 (diff)
Fix TestGLProfile01NEWT: Regression of commit 3d0ab3e6263dfdbb9dd0014443ad28b1c9b0c238
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java
index 42fde4b49..76dc9e9fd 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java
@@ -62,8 +62,14 @@ public class TestGLProfile01NEWT extends UITestCase {
System.err.println(JoglVersion.getInstance());
System.err.println(NewtVersion.getInstance());
- System.err.println(JoglVersion.getDefaultOpenGLInfo(GLDrawableFactory.getDesktopFactory().getDefaultDevice(), null, true).toString());
- System.err.println(JoglVersion.getDefaultOpenGLInfo(GLDrawableFactory.getEGLFactory().getDefaultDevice(), null, true).toString());
+ final GLDrawableFactory deskFactory = GLDrawableFactory.getDesktopFactory();
+ if( null != deskFactory ) {
+ System.err.println(JoglVersion.getDefaultOpenGLInfo(deskFactory.getDefaultDevice(), null, true).toString());
+ }
+ final GLDrawableFactory eglFactory = GLDrawableFactory.getEGLFactory();
+ if( null != eglFactory ) {
+ System.err.println(JoglVersion.getDefaultOpenGLInfo(eglFactory.getDefaultDevice(), null, true).toString());
+ }
}
static void validate(GLProfile glp) {