From c18c52b8c20aa03a08940bef81b620d48c4117e2 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Wed, 4 Jan 2012 20:21:17 +0100
Subject: Fix bug 550, JOAL lacks Platform.initSingleton() call - Using
 TempJarCache reveals unresolved initialization dependency leading to NPE in
 NativeLibrary

---
 src/java/com/jogamp/openal/ALFactory.java | 2 ++
 1 file changed, 2 insertions(+)

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)");
         }
-- 
cgit v1.2.3