Add a null pointer check in NativeActivity

due to stack trace from #17364
This commit is contained in:
Henrik Rydgård 2023-05-09 23:43:04 +02:00
parent 51fc2c6170
commit 16fbb31a65

View File

@ -754,7 +754,7 @@ public abstract class NativeActivity extends Activity {
super.onDestroy();
Log.i(TAG, "onDestroy");
if (javaGL) {
if (nativeRenderer.isRenderingFrame()) {
if (nativeRenderer != null && nativeRenderer.isRenderingFrame()) {
Log.i(TAG, "Waiting for renderer to finish.");
int tries = 200;
do {