Commit af4357b0 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix possible crash when clicking on Filenodes with a line number

If the path() set on that node can not be opened, then the editor
is 0 and thus there is a crash.

Task-number: QBS-367
Change-Id: I8887a3bb84e19292d97357df49ef988d74bf6739
Reviewed-by: default avatarTobias Hunger <>
parent b8528652
......@@ -373,7 +373,7 @@ void ProjectTreeWidget::openItem(const QModelIndex &mainIndex)
if (node->nodeType() != FileNodeType)
IEditor *editor = EditorManager::openEditor(node->path());
if (node->line() >= 0)
if (editor && node->line() >= 0)
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