diff options
author | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-10-01 12:42:26 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-10-03 19:33:46 +0000 |
commit | 2f584585e3c34871396c8dd1de4e4c03c1188492 (patch) | |
tree | 004885c390a9c71597bdb36da2424210253d5c97 /src/plugins/cpptools/cpprefactoringchanges.cpp | |
parent | 2e39132debcff470905835ed2494fce581180cca (diff) | |
download | qt-creator-2f584585e3c34871396c8dd1de4e4c03c1188492.tar.gz |
qmldesigner: Avoid crash of TextToModelMerger::getQMLSingletons()
When m_scopeChain is invalid (due to an invalid ui file)
getQMLSingletons would trigger a crash. Catch this case
and return early (an error message would then be displayed).
Fixes: QTCREATORBUG-24587
Change-Id: I80c70d8e7f1c88b14c53d3daebf957dc1e6089ee
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringchanges.cpp')
0 files changed, 0 insertions, 0 deletions