| Summary: | NullPointerException when calling GLProfile.getDefault() | ||
|---|---|---|---|
| Product: | [JogAmp] Jogl | Reporter: | asarium |
| Component: | core | Assignee: | Sven Gothel <sgothel> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | blocker | CC: | asarium, sgothel |
| Priority: | --- | ||
| Version: | 2 | ||
| Hardware: | All | ||
| OS: | all | ||
| Type: | --- | SCM Refs: | |
| Workaround: | --- | ||
| Attachments: | Test log | ||
Created attachment 261 [details]
Test log
Tested on linux and windows, latest @ branch wip_mobile (will merge later next week to master) Couldn't reproduce the bug. Just in case you need to verify if a profile is available, or if any is available, pls try the new GLProfile methods: boolean isAvailable(String profile) boolean isAnyAvailable() those don't throw a GLException (not NPE) in case the GLProfile is not available as the 'get' methods do .. |
When I try to get the default GLProfile using GLProfile.getDefault() a NullPointerException is thrown with the following stack trace: Exception in thread "main" java.lang.NullPointerException at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1561) at javax.media.opengl.GLProfile.get(GLProfile.java:589) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:421) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:429) at test.Test.main(Test.java:10) I'm using the latest autobuild and the following source code to provide a minimal example: package test; import javax.media.opengl.GLProfile; public class Test { public static void main(String[] args) { GLProfile.getDefault(); } } I also attached the test results for my current system.