Commit eca7fce4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlDesigner: Validate model before accessing it



Change-Id: I0071e81309f9750006cab325d25c0602fb42a3f2
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent b781d055
......@@ -230,7 +230,7 @@ void SubComponentManager::parseDirectories()
void SubComponentManager::parseDirectory(const QString &canonicalDirPath, bool addToLibrary, const TypeName& qualification)
{
if (!model()->rewriterView())
if (!model() || !model()->rewriterView())
return;
QDir designerDir(canonicalDirPath + Constants::QML_DESIGNER_SUBFOLDER);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment