forked from qt-creator/qt-creator
QmlProjectManager: fix crash
Fixes: QTCREATORBUG-27190 Change-Id: I188930f6e5cca5d32a91e9c6ce8ca6a798273bf2 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user