aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/JoglVersion.java8
1 files 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<GLCapabilitiesImmutable> availCaps = factory.getAvailableCapabilities(device);
- for(int i=0; i<availCaps.size(); i++) {
- sb.append("\t").append(availCaps.get(i)).append(Platform.getNewline());
+ if(null != availCaps && availCaps.size()>0) {
+ for(int i=0; i<availCaps.size(); i++) {
+ sb.append("\t").append(availCaps.get(i)).append(Platform.getNewline());
+ }
+ done = true;
}
- done = true;
} catch (GLException gle) { /* n/a */ }
}
if(!done) {