don't crash when BT's off

This commit is contained in:
Eric House 2021-07-17 13:30:53 -07:00
parent 925501a1e5
commit 6439f6d223

View file

@ -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;