Changeset 16:c225c560d931 in rrlib_jni


Ignore:
Timestamp:
07.05.2013 19:02:17 (7 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jvm.cpp

    r14 r16  
    7171 
    7272/*! Pointer to JavaVM. Set at jvm initialization - needs to be done manually if libraries/jni is not used */ 
    73 JavaVM* jvm; 
     73JavaVM* jvm = NULL; 
    7474 
    7575/*! (Cached) Pointer to JNIEnv of current thread */ 
    76 __thread JNIEnv* env; 
     76__thread JNIEnv* env = NULL; 
    7777 
    7878JNIEnv* AttachThread() 
     
    9595    return; 
    9696  } 
    97   assert(internal::jvm && "Java VM already set to a different instance"); 
     97  assert(internal::jvm == NULL && "Java VM already set to a different instance"); 
    9898  internal::jvm = jvm; 
    9999} 
Note: See TracChangeset for help on using the changeset viewer.