diff options
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/qml/qqml.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp index bda4954bb2..cb55c0d834 100644 --- a/src/qml/qml/qqml.cpp +++ b/src/qml/qml/qqml.cpp @@ -679,7 +679,8 @@ QJSValue QQmlPrivate::AOTCompiledContext::jsMetaType(int index) const void QQmlPrivate::AOTCompiledContext::setInstructionPointer(int offset) const { - engine->handle()->currentStackFrame->instructionPointer = offset; + if (auto *frame = engine->handle()->currentStackFrame) + frame->instructionPointer = offset; } QT_END_NAMESPACE |