diff options
Diffstat (limited to 'src/java/com/jogamp/openal/JoalVersion.java')
-rw-r--r-- | src/java/com/jogamp/openal/JoalVersion.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/JoalVersion.java b/src/java/com/jogamp/openal/JoalVersion.java index 2892082..7bc0978 100644 --- a/src/java/com/jogamp/openal/JoalVersion.java +++ b/src/java/com/jogamp/openal/JoalVersion.java @@ -106,6 +106,10 @@ public class JoalVersion extends JogampVersion { if( null == sb ) { sb = new StringBuilder(); } + if( null == alc ) { + sb.append("ALC null"); + return sb; + } final ALCdevice device = alc.alcOpenDevice(null); final ALCcontext context = alc.alcCreateContext(device, null); alc.alcMakeContextCurrent(context); |