CppTools: Fix crash for documents without file paths
authorNikolai Kosjar <nikolai.kosjar@digia.com>
Thu, 14 Nov 2013 09:35:54 +0000 (10:35 +0100)
committerhjk <hjk121@nokiamail.com>
Thu, 14 Nov 2013 10:21:26 +0000 (11:21 +0100)
commitd8077db3fbebb8701b10f0d37f1b228d4f708cbe
treefed81112d5724f2d4f982f44757203fda3205e63
parentd8d71b413974464f7cad4c4b1621c48e485f0fd3
CppTools: Fix crash for documents without file paths

Since commit 566be09 we might reparse the current document if the
current editor changes. This is fine as long as the current document has
a file path, which is not always true, especially for the documents
created in the FakeVim tests.

Task-number: QTCREATORBUG-10767
Change-Id: Ibe00ef8bb6a144e2ba09b311025d238c2dcde112
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
src/plugins/cpptools/cpptoolseditorsupport.cpp