diff options
Diffstat (limited to 'launcher/minecraft/Library_test.cpp')
| -rw-r--r-- | launcher/minecraft/Library_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/minecraft/Library_test.cpp b/launcher/minecraft/Library_test.cpp index 47531ad6f3..76f8547924 100644 --- a/launcher/minecraft/Library_test.cpp +++ b/launcher/minecraft/Library_test.cpp @@ -15,7 +15,8 @@ private: { auto path = QFINDTESTDATA(file); QFile jsonFile(path); - jsonFile.open(QIODevice::ReadOnly); + if (!jsonFile.open(QIODevice::ReadOnly)) + return nullptr; auto data = jsonFile.readAll(); jsonFile.close(); ProblemContainer problems; |
