From 90e4f6aa688c9730bcdedea727031d5dccb32b39 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 25 Feb 2012 13:58:13 +0100 Subject: JoglVersion: Avoid NPE if no caps are available. --- src/jogl/classes/com/jogamp/opengl/JoglVersion.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java index 40790e770..7bf299383 100644 --- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java +++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java @@ -78,10 +78,12 @@ public class JoglVersion extends JogampVersion { if(null!=factory) { try { final List availCaps = factory.getAvailableCapabilities(device); - for(int i=0; i0) { + for(int i=0; i