Commit dbada532 by Lee Jaebin

bletoothGattのnullチェック

parent 34c925c1
......@@ -84,7 +84,7 @@ public class BleManagerUtil {
@Override
public void run() {
// 接続完了
if (!mBluetoothGatt.discoverServices()) { // サービス検索
if (mBluetoothGatt == null || !mBluetoothGatt.discoverServices()) { // サービス検索
runOnUiThread( new Runnable() { // 接続失敗
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment