platform/android_nosdl: remove NULL native object case

This commit is contained in:
mittorn 2023-12-16 22:12:40 +03:00 committed by Alibek Omarov
parent dbc54fb522
commit be9dda2a56
1 changed files with 1 additions and 6 deletions

View File

@ -667,14 +667,9 @@ Android_GetNativeObject
*/
void *Android_GetNativeObject( const char *objName )
{
static const char *availObjects[] = { "JNIEnv", "ActivityClass", NULL };
void *object = NULL;
if( !objName )
{
object = (void*)availObjects;
}
else if( !strcasecmp( objName, "JNIEnv" ) )
if( !strcasecmp( objName, "JNIEnv" ) )
{
object = (void*)jni.env;
}