aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 91ff79af..39e29f9f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1179,6 +1179,12 @@ static void CleanupJNIEnv(void* UNUSED(ptr))
void *Android_GetJNIEnv(void)
{
+ if(!gJavaVM)
+ {
+ WARN("gJavaVM is NULL!\n");
+ return NULL;
+ }
+
/* http://developer.android.com/guide/practices/jni.html
*
* All threads are Linux threads, scheduled by the kernel. They're usually