DevHeads.net

Review Request 109844: Fixes a Null pointer problem and increase readability

Review request for kde-workspace.

Description
I have faced a "TaskManager::AlphaSortingStrategy::sortItems: Null Pointer" error in my .xsession_errors file and when i check cpp i have saw that :
TaskItem *item = qobject_cast<TaskItem*>(groupable);
on the other hand all checkings for qroupable variable are in other if clauses which are not satisfy all situations.

Diffs
libs/taskmanager/strategies/alphasortingstrategy.cpp d4dda00

Diff: <a href="http://git.reviewboard.kde.org/r/109844/diff/" title="http://git.reviewboard.kde.org/r/109844/diff/">http://git.reviewboard.kde.org/r/109844/diff/</a>

Testing

Thanks,

Ömer Fadıl Usta