aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compiler.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-09-23 07:37:22 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-09-23 08:43:07 +0200
commita90f7fc640d612a2524f6bb1522d786960e3a573 (patch)
tree42f4671e8583b3d2771f7ffa51e2f4229efd5980 /src/qml/compiler/qv4compiler.cpp
parent149c1dd07b54ee0c027d94a49d52160dc4f4e2ac (diff)
Avoid crash when module version cannot be resolved
When QQmlMetaType::latestModuleVersion() returned an invalid version, we would fail importStaticPlugin() without adding any error. Since we unconditionally called takeFirst() on the errors list, we would later crash. The precondition here is that any failure adds an error, so we now assert to make this explicit. Also, add a simple module not found error when we can't resolve it. Change-Id: I7a13775b2ef56d95b7738ac53e58501b8c68895f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compiler.cpp')
0 files changed, 0 insertions, 0 deletions