summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/debugginghelper.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-06-08 13:55:50 +0200
committerLeandro Melo <leandro.melo@nokia.com>2010-06-08 14:00:57 +0200
commit72c74b7d5aaaf24f084ed81fcf58f59387983515 (patch)
tree3f6f8b54de28858520c1d308c951e5464ff35fe4 /src/plugins/projectexplorer/debugginghelper.cpp
parentfa382022e02018de96863b60141d07fc0427dc48 (diff)
downloadqt-creator-72c74b7d5aaaf24f084ed81fcf58f59387983515.tar.gz
Bug fix: Late crash when closing Creator while building debugging helper (QTCREATORBUG-1576).
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/projectexplorer/debugginghelper.cpp')
-rw-r--r--src/plugins/projectexplorer/debugginghelper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp
index 495996e450..9c091557c0 100644
--- a/src/plugins/projectexplorer/debugginghelper.cpp
+++ b/src/plugins/projectexplorer/debugginghelper.cpp
@@ -113,6 +113,8 @@ QStringList DebuggingHelperLibrary::debuggingHelperLibraryLocationsByInstallData
QString DebuggingHelperLibrary::debuggingHelperLibraryByInstallData(const QString &qtInstallData)
{
+ if (!Core::ICore::instance())
+ return QString();
const QString dumperSourcePath = Core::ICore::instance()->resourcePath() + QLatin1String("/gdbmacros/");
QDateTime lastModified = QFileInfo(dumperSourcePath + "gdbmacros.cpp").lastModified();
// We pretend that the lastmodified of gdbmacros.cpp is 5 minutes before what the file system says