summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/cdb/cdbengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/cdb/cdbengine.cpp')
-rw-r--r--src/plugins/debugger/cdb/cdbengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 61ee6c9180..9e8496e246 100644
--- a/src/plugins/debugger/cdb/cdbengine.cpp
+++ b/src/plugins/debugger/cdb/cdbengine.cpp
@@ -2431,7 +2431,7 @@ static CPlusPlus::Document::Ptr getParsedDocument(const FilePath &filePath,
if (workingCopy.contains(filePath))
src = workingCopy.source(filePath);
else
- src = QString::fromLocal8Bit(filePath.fileContents()).toUtf8();
+ src = QString::fromLocal8Bit(filePath.fileContents().value_or(QByteArray())).toUtf8();
CPlusPlus::Document::Ptr doc = snapshot.preprocessedDocument(src, filePath);
doc->parse();