[Kde-hardware-devel] Review Request 114433: Crash fix on non-existent device
Àlex Fiestas
afiestas at kde.org
Sun Dec 15 03:27:45 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/114433/#review45708
-----------------------------------------------------------
Ship it!
If you could port the relevant part to the other helpers (audio, network) that'd be nice, if not I will do it before next release.
The patch is good, so go ahead !
- Àlex Fiestas
On Dec. 13, 2013, 11:30 a.m., Aaron J. Seigo wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/114433/
> -----------------------------------------------------------
>
> (Updated Dec. 13, 2013, 11:30 a.m.)
>
>
> Review request for Solid and Àlex Fiestas.
>
>
> Repository: bluedevil
>
>
> Description
> -------
>
> When a non-existent device is handed to the input helper via the command line it crashes because it gets back a null device. This adds a check for that.
>
> Bonus fixes:
> * qApp->exit() only works when called after the event loop is set up; so delay the init of the helper with a singleshot timer; this allows the process to actually exit instead of just hanging
> * compiler warning about an unused variable in main.cpp
>
>
> Diffs
> -----
>
> src/actionplugins/input/helper/inputhelper.h c7b7030
> src/actionplugins/input/helper/inputhelper.cpp db9a0b7
> src/actionplugins/input/helper/main.cpp 7fca8f2
>
> Diff: http://git.reviewboard.kde.org/r/114433/diff/
>
>
> Testing
> -------
>
> Tried it with invalid device addresses as well as valid ones, both from the command line and from the bluedevil systray icon.
>
>
> Thanks,
>
> Aaron J. Seigo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20131215/f13b4c3e/attachment.html>
More information about the Kde-hardware-devel
mailing list