Skip to content

Commit

Permalink
Fixed crash if mSurface isn't set up when we pause the application
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 24, 2017
1 parent 81f7e0c commit 4553671
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -354,7 +354,8 @@ public static void handleNativeState() {
// Try a transition to paused state
if (mNextNativeState == NativeState.PAUSED) {
nativePause();
mSurface.handlePause();
if (mSurface != null)
mSurface.handlePause();
mCurrentNativeState = mNextNativeState;
return;
}
Expand Down

0 comments on commit 4553671

Please sign in to comment.