diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java index 9d0d111d7..ec727f718 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java @@ -2232,16 +2232,19 @@ public class BoardDelegate extends DelegateBase runOnUiThread( new Runnable() { @Override public void run() { - Assert.assertTrue( m_jniGamePtr.isRetained() ); - boolean hasPending = 0 < XwJNI. - comms_countPendingPackets( m_jniGamePtr ); - mGameOverAlert = GameOverAlert - .newInstance( m_summary, - msg.arg1, - (String)msg.obj, - hasPending, - inArchiveGroup() ); - show( mGameOverAlert ); + Log.d( TAG, "makeJNIHandler(): handling GAME_OVER" ); + Assert.assertTrueNR( m_jniGamePtr.isRetained() ); + if ( m_jniGamePtr.isRetained() ) { + boolean hasPending = 0 < XwJNI. + comms_countPendingPackets( m_jniGamePtr ); + mGameOverAlert = GameOverAlert + .newInstance( m_summary, + msg.arg1, + (String)msg.obj, + hasPending, + inArchiveGroup() ); + show( mGameOverAlert ); + } } } ); }