Commit c40638b7 authored by Volker Krause's avatar Volker Krause
Browse files

Fix nullptr access on pkpass parsing failures

BUG: 428358
parent 0e83bb94
Pipeline #39691 failed with stage
in 5 minutes and 37 seconds
......@@ -81,6 +81,9 @@ public:
}
std::unique_ptr<KPkPass::Pass> pass(KPkPass::Pass::fromData(msgPart->content()->decodedContent()));
if (!pass) {
return false;
}
const auto dir = mp->nodeHelper()->createTempDir(QStringLiteral("pkpass"));
const auto logo = pass->logo();
if (!logo.isNull()) {
......
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