Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
c40638b7
Commit
c40638b7
authored
Oct 29, 2020
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nullptr access on pkpass parsing failures
BUG: 428358
parent
0e83bb94
Pipeline
#39691
failed with stage
in 5 minutes and 37 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
plugins/messageviewer/bodypartformatter/pkpass/pkpass_plugin.cpp
.../messageviewer/bodypartformatter/pkpass/pkpass_plugin.cpp
+3
-0
No files found.
plugins/messageviewer/bodypartformatter/pkpass/pkpass_plugin.cpp
View file @
c40638b7
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment