Changes: Fix a crasher in startRequestImpl when AEGIS credentials are wrong
authorAdrien Bustany <adrien.bustany@nokia.com>
Mon, 1 Aug 2011 11:51:43 +0000 (14:51 +0300)
committerAdrien Bustany <adrien.bustany@nokia.com>
Fri, 12 Aug 2011 15:00:28 +0000 (18:00 +0300)
commit47533aa49557f4dd64a97d996736233747137310
treec35300dc8019a77c3a7855d006c889408ecdabc4
parent74e77d9cbfce22636655b4912c4b02eb5da2ec31
Changes: Fix a crasher in startRequestImpl when AEGIS credentials are wrong

RevBy: cocos (MR#264)
Details:
This commit removes a potential null pointer dereference in
QctRequestTask::onRequestStateChanged that would happen if
Engine::createRequestWorker returned 0 in startRequestImpl. The worker creation
is now done in startRequestImpl, and no QctRequestTask is created if
createRequestWorker returns 0.

fix fix
src/engine/engine.cpp
src/engine/tasks.cpp
src/engine/tasks.h