Commit 13faf493 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix segfault during import resolution.

parent 74cf70de
......@@ -301,7 +301,8 @@ ObjectValue *Link::importFile(Document::Ptr, const ImportInfo &importInfo)
}
} else if (importInfo.type() == ImportInfo::FileImport) {
Document::Ptr importedDoc = d->snapshot.document(path);
import = importedDoc->bind()->rootObjectValue();
if (importedDoc)
import = importedDoc->bind()->rootObjectValue();
}
return import;
......
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