From 6b8eb847c49251ddecdf1480df7379b8029fd0a3 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 21 Mar 2011 15:43:56 +0100 Subject: [PATCH] fix crash when evalError() is called before a block is started would happen if a qt installation simply disappeared and the qt version manager didn't notice it yet. --- src/shared/proparser/profileevaluator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index 84c4bc617a0..a417e01d9de 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -3218,7 +3218,8 @@ bool ProFileEvaluator::Private::evaluateFileInto( void ProFileEvaluator::Private::evalError(const QString &message) const { if (!m_skipLevel) - m_handler->evalError(m_current.pro->fileName(), m_current.line, message); + m_handler->evalError(m_current.line ? m_current.pro->fileName() : QString(), + m_current.line, message); }