Skip to content

Commit

Permalink
Add a null pointer check in NativeActivity
Browse files Browse the repository at this point in the history
due to stack trace from #17364
  • Loading branch information
hrydgard committed May 9, 2023
1 parent 51fc2c6 commit 16fbb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/org/ppsspp/ppsspp/NativeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ protected void onDestroy() {
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 {
Expand Down

0 comments on commit 16fbb31

Please sign in to comment.