[Okular-devel] Review Request 122074: Fix crash when arguments().mimeType() is an invalid mimetype name.
Albert Astals Cid
aacid at kde.org
Fri Jan 16 15:17:57 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122074/#review74140
-----------------------------------------------------------
Oh, for some reason i thought all kmimetype functions returned the default mimetype on "failure" but you're right mimeType returns 0.
part.cpp
<https://git.reviewboard.kde.org/r/122074/#comment51498>
You shouldn't add argMime here either
- Albert Astals Cid
On gen. 15, 2015, 3:44 p.m., David Faure wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122074/
> -----------------------------------------------------------
>
> (Updated gen. 15, 2015, 3:44 p.m.)
>
>
> Review request for Okular and Albert Astals Cid.
>
>
> Repository: okular
>
>
> Description
> -------
>
> I have a JIRA bug report with a PDF attached, and mid-clicking the PDF
> in konqueror leads to opening an okularpart with mimetype="application/x-octet-stream"
> (the x- in there is very unusual, and unknown to shared-mime-info).
> Fixed with null pointer checks.
>
>
> Diffs
> -----
>
> part.cpp 263f3ad0bd0945590463092df4efdcb9b9515e90
>
> Diff: https://git.reviewboard.kde.org/r/122074/diff/
>
>
> Testing
> -------
>
> crashes without the patch, works with the patch.
>
>
> Do I need to manually apply this to master or frameworks, or do you merge regularly?
>
>
> Thanks,
>
> David Faure
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20150116/76a3bfd2/attachment.html>
More information about the Okular-devel
mailing list