aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-01-04 20:21:17 +0100
committerSven Gothel <[email protected]>2012-01-04 20:21:17 +0100
commitc18c52b8c20aa03a08940bef81b620d48c4117e2 (patch)
treea63d4c4d98f6bed79efcabd5f8d969bb1de35c6a /src/java
parent4b84f0db9332a945f8e1e357a38f07146b3371e7 (diff)
Fix bug 550, JOAL lacks Platform.initSingleton() call - Using TempJarCache reveals unresolved initialization dependency leading to NPE in NativeLibrary
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/jogamp/openal/ALFactory.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/ALFactory.java b/src/java/com/jogamp/openal/ALFactory.java
index 4c114c8..29174ba 100644
--- a/src/java/com/jogamp/openal/ALFactory.java
+++ b/src/java/com/jogamp/openal/ALFactory.java
@@ -33,6 +33,7 @@
package com.jogamp.openal;
+import com.jogamp.common.os.Platform;
import com.jogamp.openal.AL;
import com.jogamp.openal.ALC;
import jogamp.openal.*;
@@ -55,6 +56,7 @@ public class ALFactory {
private static synchronized void initialize() throws ALException {
try {
if (!initialized) {
+ Platform.initSingleton();
if(null == ALImpl.getALProcAddressTable()) {
throw new ALException("AL not initialized (ProcAddressTable null)");
}