java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.bluetooth.BluetoothGattService.getCharacteristics()' on a null object reference

GitHub | TomDemulierChevret | 8 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

    Error while writing on a characteristic

    GitHub | 8 months ago | TomDemulierChevret
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.bluetooth.BluetoothGattService.getCharacteristics()' on a null object reference
  2. 0

    Connect error on Android

    GitHub | 2 months ago | loopezz
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.bluetooth.BluetoothGatt.close()' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Uncaught exception from plugin

    GitHub | 2 years ago | nexus1892
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.bluetooth.BluetoothGattCharacteristic android.bluetooth.BluetoothGattService.getCharacteristic(java.util.UUID)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'java.util.List android.bluetooth.BluetoothGattService.getCharacteristics()' on a null object reference

      at com.megster.cordova.ble.central.Peripheral.findWritableCharacteristic()
    2. com.megster.cordova
      BLECentralPlugin.execute
      1. com.megster.cordova.ble.central.Peripheral.findWritableCharacteristic(Peripheral.java:559)
      2. com.megster.cordova.ble.central.Peripheral.writeCharacteristic(Peripheral.java:525)
      3. com.megster.cordova.ble.central.Peripheral.processCommands(Peripheral.java:637)
      4. com.megster.cordova.ble.central.Peripheral.queueCommand(Peripheral.java:611)
      5. com.megster.cordova.ble.central.Peripheral.queueWrite(Peripheral.java:582)
      6. com.megster.cordova.ble.central.BLECentralPlugin.write(BLECentralPlugin.java:403)
      7. com.megster.cordova.ble.central.BLECentralPlugin.execute(BLECentralPlugin.java:179)
      7 frames
    3. org.apache.cordova
      SystemExposedJsApi.exec
      1. org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117)
      2. org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
      3. org.apache.cordova.PluginManager.exec(PluginManager.java:133)
      4. org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
      5. org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
      5 frames
    4. org.chromium.base
      SystemMessageHandler.handleMessage
      1. org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
      2. org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39)
      2 frames
    5. Android Platform
      HandlerThread.run
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:154)
      3. android.os.HandlerThread.run(HandlerThread.java:61)
      3 frames