mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-13 20:48:02 +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;
|
mLength = 0;
|
||||||
mTimeoutMS = timeoutMS;
|
mTimeoutMS = timeoutMS;
|
||||||
mAdapter = getAdapterIf();
|
mAdapter = getAdapterIf();
|
||||||
Assert.assertTrueNR( null != mAdapter );
|
if ( null == mAdapter ) {
|
||||||
|
Log.d( TAG, "adapter null; is BT on?" );
|
||||||
|
}
|
||||||
mHelper = new BTHelper( mName, mAddr );
|
mHelper = new BTHelper( mName, mAddr );
|
||||||
mPostOnResponse = true;
|
mPostOnResponse = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue