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

GitHub | nexus1892 | 2 years ago
  1. 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
  2. 0

    Error while writing on a characteristic

    GitHub | 3 months ago | TomDemulierChevret
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.bluetooth.BluetoothGattService.getCharacteristics()' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    The resource was accessed after it was dismissed.
  5. 0
    Initialize the variable before calling a method on it.

    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 'android.bluetooth.BluetoothGattCharacteristic android.bluetooth.BluetoothGattService.getCharacteristic(java.util.UUID)' on a null object reference

      at com.megster.cordova.ble.central.Peripheral.writeCharacteristic()
    2. com.megster.cordova
      BLECentralPlugin.execute
      1. com.megster.cordova.ble.central.Peripheral.writeCharacteristic(Peripheral.java:366)
      2. com.megster.cordova.ble.central.Peripheral.processCommands(Peripheral.java:440)
      3. com.megster.cordova.ble.central.Peripheral.queueCommand(Peripheral.java:414)
      4. com.megster.cordova.ble.central.Peripheral.queueWrite(Peripheral.java:396)
      5. com.megster.cordova.ble.central.BLECentralPlugin.write(BLECentralPlugin.java:253)
      6. com.megster.cordova.ble.central.BLECentralPlugin.execute(BLECentralPlugin.java:129)
      6 frames
    3. org.apache.cordova
      SystemExposedJsApi.exec
      1. org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:114)
      2. org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:95)
      3. org.apache.cordova.PluginManager.exec(PluginManager.java:130)
      4. org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
      5. org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
      5 frames
    4. com.android.org
      SystemMessageHandler.handleMessage
      1. com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
      2. com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:28)
      2 frames
    5. Android Platform
      HandlerThread.run
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:155)
      3. android.os.HandlerThread.run(HandlerThread.java:61)
      3 frames