fix NPE reported by crittercism

This commit is contained in:
Eric House 2015-08-01 22:17:13 -07:00
parent b500a4646d
commit 1959ff3b2d

View file

@ -2119,7 +2119,8 @@ public class BoardDelegate extends DelegateBase
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 );
for ( CommsAddrRec addr : addrs ) {
if ( addr.contains( CommsConnType.COMMS_CONN_BT ) ) {