From 4ae58342dad72afc08e7e74aab28637a07b94735 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 28 Oct 2010 05:45:56 -0700 Subject: [PATCH] test, don't assert: comms can be null --- xwords4/android/XWords4/jni/xwjni.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index 04de8c380..09033fd47 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -1191,8 +1191,7 @@ Java_org_eehouse_android_xw4_jni_XwJNI_comms_1isConnected { jboolean result; XWJNI_START(); - XP_ASSERT( !!state->game.comms ); - result = comms_isConnected( state->game.comms ); + result = NULL != state->game.comms && comms_isConnected( state->game.comms ); XWJNI_END(); return result; }