java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGatt.discoverServices()' on a null object reference

Stack Overflow | dipali pawar | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    BluetoothGatt not discoverservices() onConnectionStateChange in android

    Stack Overflow | 9 months ago | dipali pawar
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGatt.discoverServices()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGatt.discoverServices()' on a null object reference

      at com.actofit.wear.Home.LifeLogStopService$1.onConnectionStateChange()
    2. com.actofit.wear
      LifeLogStopService$1.onConnectionStateChange
      1. com.actofit.wear.Home.LifeLogStopService$1.onConnectionStateChange(LifeLogStopService.java:103)
      1 frame
    3. Android Platform
      Binder.execTransact
      1. android.bluetooth.BluetoothGatt$1.onClientConnectionState(BluetoothGatt.java:181)
      2. android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:70)
      3. android.os.Binder.execTransact(Binder.java:453)
      3 frames