[Kde-hardware-devel] Review Request 114433: Crash fix on non-existent device

Aaron J. Seigo aseigo at kde.org
Fri Dec 13 11:31:09 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/114433/#review45635
-----------------------------------------------------------



src/actionplugins/input/helper/inputhelper.cpp
<http://git.reviewboard.kde.org/r/114433/#comment32593>

    werf.. just noticed the editor helpfully pushed this down a line. i'll fix this before pushing.


- Aaron J. Seigo


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/20131213/a03b4ddf/attachment.html>


More information about the Kde-hardware-devel mailing list