From f5cc23f591199aa7ca3c6367205ca2134fddf078 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 28 Sep 2022 08:48:11 -0700 Subject: [PATCH] add assert --- xwords4/android/jni/utilwrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/android/jni/utilwrapper.c b/xwords4/android/jni/utilwrapper.c index 5fc370208..5202e920e 100644 --- a/xwords4/android/jni/utilwrapper.c +++ b/xwords4/android/jni/utilwrapper.c @@ -883,8 +883,9 @@ and_dutil_notifyPause( XW_DUtilCtxt* duc, XWEnv xwe, XP_U32 gameID, DupPauseType static XP_Bool and_dutil_haveGame( XW_DUtilCtxt* duc, XWEnv xwe, XP_U32 gameID, XP_U8 channel ) { - XP_Bool result; + XP_Bool result = XP_FALSE; DUTIL_CBK_HEADER( "haveGame", "(II)Z" ); + XP_ASSERT( !!dutil->jdutil ); /* returning false by default a problem */ result = (*env)->CallBooleanMethod( env, dutil->jdutil, mid, gameID, channel ); DUTIL_CBK_TAIL(); return result;