diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 91ca5572e..4c98d357c 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -858,8 +858,11 @@ comms_checkAddr( DeviceRole role, const CommsAddrRec* addr, XW_UtilCtxt* util ) CommsConnType comms_getConType( const CommsCtxt* comms ) { - XP_ASSERT( !!comms ); /* or: return COMMS_CONN_NONE */ - return comms->addr.conType; + CommsConnType typ = !!comms ? comms->addr.conType : COMMS_CONN_NONE; + if ( !comms ) { + XP_LOGF( "%s: returning COMMS_CONN_NONE for null comms", __func__ ); + } + return typ; } /* comms_getConType */ XP_Bool