QmlProjectManager: fix crash

Fixes: QTCREATORBUG-27190
Change-Id: I188930f6e5cca5d32a91e9c6ce8ca6a798273bf2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2022-03-16 18:43:40 +01:00
parent a42b63ac05
commit 976653cd93

View File

@@ -210,7 +210,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
QmlJS::ModelManagerInterface *modelManager QmlJS::ModelManagerInterface *modelManager
= QmlJS::ModelManagerInterface::instance(); = QmlJS::ModelManagerInterface::instance();
if (!editor) if (!editor || !modelManager)
return; return;
if (d->lastMessageBox) if (d->lastMessageBox)