diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp index 39b660112..2996890dc 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceAndroid.cpp @@ -1150,6 +1150,12 @@ void CIrrDeviceAndroid::getKeyChar(SEvent& event) void CIrrDeviceAndroid::hideNavBar(ANativeActivity* activity) { + if (activity == NULL) + return; + + if (activity->sdkVersion < 19) + return; + bool was_detached = false; JNIEnv* env = NULL;