Commit 4b099256 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QmlJS: Fix potential null pointer access.



Change-Id: Ib3e6256343e912a0af4e9618d0f17e1075b94ff0
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@theqtcompany.com>
parent 99e92dce
......@@ -497,7 +497,7 @@ ComponentVersion TypeDescriptionReader::readNumericVersionBinding(UiScriptBindin
ComponentVersion invalidVersion;
if (!ast || !ast->statement) {
addError(ast->colonToken, tr("Expected numeric literal after colon."));
addError((ast ? ast->colonToken : SourceLocation()), tr("Expected numeric literal after colon."));
return invalidVersion;
}
......
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