mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
fix NPE reported by crittercism
This commit is contained in:
parent
0a95bc0f42
commit
8aef67dba4
1 changed files with 2 additions and 1 deletions
|
@ -2144,7 +2144,8 @@ public class BoardDelegate extends DelegateBase
|
||||||
|
|
||||||
private void pingBTRemotes()
|
private void pingBTRemotes()
|
||||||
{
|
{
|
||||||
if ( m_connTypes.contains( CommsConnType.COMMS_CONN_BT ) ) {
|
if ( null != m_connTypes
|
||||||
|
&& m_connTypes.contains( CommsConnType.COMMS_CONN_BT ) ) {
|
||||||
CommsAddrRec[] addrs = XwJNI.comms_getAddrs( m_jniGamePtr );
|
CommsAddrRec[] addrs = XwJNI.comms_getAddrs( m_jniGamePtr );
|
||||||
for ( CommsAddrRec addr : addrs ) {
|
for ( CommsAddrRec addr : addrs ) {
|
||||||
if ( addr.contains( CommsConnType.COMMS_CONN_BT ) ) {
|
if ( addr.contains( CommsConnType.COMMS_CONN_BT ) ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue