From 5077dc84c0cea1ad07b01d07e44bd2bce5a14eec Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 22 Dec 2013 02:09:38 +0100 Subject: Fix TestGLProfile01NEWT: Regression of commit 3d0ab3e6263dfdbb9dd0014443ad28b1c9b0c238 --- .../opengl/test/junit/jogl/acore/TestGLProfile01NEWT.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3