Don't crash if fopen fails

Authored by svuorela on May 1 2018, 7:10 PM.

Description

Don't crash if fopen fails

Summary:
If we have a qrc url, all checks so far fails, and this one returns null.

It might also be possible to get here in some race condition.

Reviewers: aacid

Reviewed By: aacid

Subscribers: Okular

Tags: Okular

Differential Revision: https://phabricator.kde.org/D12643

Details

Committed
svuorelaMay 1 2018, 8:24 PM
Reviewer
aacid
Differential Revision
D12643: Don't crash if fopen fails
Parents
R223:991eb0ed3125: Use toLocal8Bit instead of toUtf8
Branches
Unknown
Tags
Unknown