Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.5.7
-
None
-
RHEL 8.10
Edition: Windows 10 2021 LTSC Enterprise Edition 64 bit - version 21H2 - OS build 19044.5371
Description
as nullptr exceptions are not handled for hasFocus(), it can lead to crashes
it requires the nullptr handling to be implemented by us
what happens is:
sometimes the widget is not properly initialized & still we try to set the focus which goes to hasFocus() in the flow
you will find below the stack trace we get in such case (when the null pointer exception happens):
Stack Trace: ACCESS_VIOLATION
QWidget::hasFocus:0
QAccessibleWidget::focusChild:0
QAccessibleWidget::focusChild:0
qt_plugin_query_metadata_v2:0
QAccessible::updateAccessibility:0
QWidgetRepaintManager::updateStaticContentsSize:0
QApplicationPrivate::notify_helper:0
QApplication::notify:0
note: the red strikedthough area is to hide reference to our code/product