Skip to content

Commit 16fbb31

Browse files
committed
Add a null pointer check in NativeActivity
due to stack trace from #17364
1 parent 51fc2c6 commit 16fbb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/org/ppsspp/ppsspp/NativeActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ protected void onDestroy() {
754754
super.onDestroy();
755755
Log.i(TAG, "onDestroy");
756756
if (javaGL) {
757-
if (nativeRenderer.isRenderingFrame()) {
757+
if (nativeRenderer != null && nativeRenderer.isRenderingFrame()) {
758758
Log.i(TAG, "Waiting for renderer to finish.");
759759
int tries = 200;
760760
do {

0 commit comments

Comments
 (0)