java.lang.NullPointerException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web21087

  • Attempt to invoke virtual method 'java.util.List android.bluetooth.BluetoothGattService.getCharacteristics()' on a null object reference
  • Attempt to invoke virtual method 'java.util.List com.google.android.gms.cast.MediaMetadata.getImages()' on a null object reference
  • via GitHub by Yichen525
    , 6 months ago
    Attempt to invoke virtual method 'java.util.List com.soomla.store.billing.IabInventory.getAllQueriedSkus(boolean)' on a null object reference
  • Stack trace

    • 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(Peripheral.java:559) at com.megster.cordova.ble.central.Peripheral.writeCharacteristic(Peripheral.java:525) at com.megster.cordova.ble.central.Peripheral.processCommands(Peripheral.java:637) at com.megster.cordova.ble.central.Peripheral.queueCommand(Peripheral.java:611) at com.megster.cordova.ble.central.Peripheral.queueWrite(Peripheral.java:582) at com.megster.cordova.ble.central.BLECentralPlugin.write(BLECentralPlugin.java:403) at com.megster.cordova.ble.central.BLECentralPlugin.execute(BLECentralPlugin.java:179) at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:117) at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98) at org.apache.cordova.PluginManager.exec(PluginManager.java:133) at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41) at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.