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

DocumentManager: Handle 0 pointers gracefully



Change-Id: I26be412414d55963456941c9cb1aac2c7db5aee9
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 633208b9
......@@ -599,7 +599,7 @@ static QList<IDocument *> saveModifiedFilesHelper(const QList<IDocument *> &docu
QList<IDocument *> modifiedDocuments;
foreach (IDocument *document, documents) {
if (document->isModified()) {
if (document && document->isModified()) {
QString name = document->filePath();
if (name.isEmpty())
name = document->suggestedFileName();
......
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