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

Stack Overflow | dipali pawar | 7 months ago
  1. 0

    BluetoothGatt not discoverservices() onConnectionStateChange in android

    Stack Overflow | 7 months ago | dipali pawar
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothGatt.discoverServices()' on a null object reference
  2. 0
    The resource was accessed after it was dismissed.
  3. 0
    The parsed JSON does not contains the requested field.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Initialize the variable before calling a method on it.
  6. 0
    Use 'dialog' to access views from custom_layout layout.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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