Commit 3af17048 authored by Alexandru Croitor's avatar Alexandru Croitor Committed by Alexandru Croitor
Browse files

Fix crash related to audioMuted and recentlyAudible properties in qml.


If the qml properties audioMuted or recentlyAudible are accessed / set
on a WebEngineView on application startup, the application will crash
due to accessing a null pointer (the web contents adapter is not
allocated yet).

Add guards against null pointer access, to prevent the crash.

Change-Id: I939be9afa093d1889024b2ff9308deb88b9316bf
Reviewed-by: default avatarMichael Brüning <michael.bruning@theqtcompany.com>
parent 9d77fecb
No related merge requests found
Showing with 16 additions and 8 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment