diff --git a/src/plugins/qmldesigner/designercore/model/abstractview.cpp b/src/plugins/qmldesigner/designercore/model/abstractview.cpp index 665562a44a4..fa36ea447d6 100644 --- a/src/plugins/qmldesigner/designercore/model/abstractview.cpp +++ b/src/plugins/qmldesigner/designercore/model/abstractview.cpp @@ -696,6 +696,7 @@ void AbstractView::setEnabled(bool b) QList AbstractView::allModelNodes() const { + QTC_ASSERT(model(), return {}); return toModelNodeList(model()->d->allNodes()); }