Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58776

Discovery of the last BLE service produce a java NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.9.0 Alpha
    • Labels:
      None
    • Environment:
      Build : Debian jessie + QT 5.8
      Target : Android 6.0.1

      Description

      Hi,

      I can reproduce the bug with the example project "lowenergyscanner".

      • I start the application
      • The application detect the device
      • The application show the list of services
      • The application crash when connect to a service

      Cheers,

      W QtBluetoothGatt: Performing queued job, handle: 80 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: Performing queued job, handle: 81 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 82 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: Performing queued job, handle: 83 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 84 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: Performing queued job, handle: 85 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 86 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: onCharacteristicRead during discovery error: 1
      W QtBluetoothGatt: Performing queued job, handle: 87 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 88 Read (false) ValueKnown: false Skipping: false Characteristic
      W QtBluetoothGatt: onCharacteristicRead during discovery error: 1
      W QtBluetoothGatt: Performing queued job, handle: 89 Read (false) ValueKnown: false Skipping: true CharacteristicValue
      W QtBluetoothGatt: Performing queued job, handle: 90 Read (false) ValueKnown: false Skipping: false Descriptor
      W QtBluetoothGatt: onDescriptorcRead during discovery error: 1
      W BluetoothGatt: Unhandled exception in callback
      W BluetoothGatt: java.lang.NullPointerException: Attempt to read from null array
      W BluetoothGatt: at org.qtproject.qt5.android.bluetooth.QtBluetoothLE$2.onDescriptorRead(QtBluetoothLE.java:395)
      W BluetoothGatt: at android.bluetooth.BluetoothGatt$1.onDescriptorRead(BluetoothGatt.java:494)
      W BluetoothGatt: at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:330)
      W BluetoothGatt: at android.os.Binder.execTransact(Binder.java:467)

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            w.martin William MARTIN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes