Fix a crash when accessing DeviceInformation during device discovery
The linked bugreport mentions that a discovered device can report a
NULL DeviceInformation under some conditions, and we did not really
guard against that.
I was able to reproduce the issue with BTLE device scan, and the classic
device scan has the same pattern. So, fix both of them.
Fixes: QTBUG-149163
Pick-to: 6.12 6.11 6.8
Change-Id: Id7dffa24426b6f881fc117047f6dfc22ae4f2495
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
| commit | 5f41202f962736cf64814878152d7caa3d2c5cb1 |
| parent | 635a5f4c5fa86c6a4fb1046443db9f9ec1adcb61 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 14 Aug 2026 08:26:26 +0000 |