summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpprefactoringchanges.cpp
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@qt.io>2020-10-01 12:42:26 +0200
committerFawzi Mohamed <fawzi.mohamed@qt.io>2020-10-03 19:33:46 +0000
commit2f584585e3c34871396c8dd1de4e4c03c1188492 (patch)
tree004885c390a9c71597bdb36da2424210253d5c97 /src/plugins/cpptools/cpprefactoringchanges.cpp
parent2e39132debcff470905835ed2494fce581180cca (diff)
downloadqt-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