From 8fb21002ad658a36e24309a4d331416afb5a1b8c Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 29 Apr 2020 10:37:42 -0700 Subject: [PATCH] word around some race condition to avoid crash Reported by Play Store user; can't reproduce but this should fix it. --- .../main/java/org/eehouse/android/xw4/GameConfigDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java index 2969243c3..f505bada5 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/GameConfigDelegate.java @@ -865,7 +865,7 @@ public class GameConfigDelegate extends DelegateBase protected boolean handleBackPressed() { boolean consumed = false; - if ( ! isFinishing() ) { + if ( ! isFinishing() && null != m_gi ) { if ( m_isNewGame ) { deleteGame(); } else {