mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +01:00
don't crash when BT's off
This commit is contained in:
parent
925501a1e5
commit
6439f6d223
1 changed files with 3 additions and 1 deletions
|
@ -615,7 +615,9 @@ public class BTUtils {
|
|||
mLength = 0;
|
||||
mTimeoutMS = timeoutMS;
|
||||
mAdapter = getAdapterIf();
|
||||
Assert.assertTrueNR( null != mAdapter );
|
||||
if ( null == mAdapter ) {
|
||||
Log.d( TAG, "adapter null; is BT on?" );
|
||||
}
|
||||
mHelper = new BTHelper( mName, mAddr );
|
||||
mPostOnResponse = true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue