I was following the example to retrive the location from the link :-
http://www.developer.nokia.com/info/...n_Example.html

But in this link when user put the command to retrieve the location it calls the function

void CLocationExampleEngine::ActivateGpsL().

After that in side this function

we are initializing the pointer of CLocationExamplePositionRequestor.

if (!iPositionRequestor)
{
iPositionRequestor = CLocationExamplePositionRequestor::NewL(KUpdateInterval,*this);
SetEngineState(EScanningGps);
}

but here in this function when i am debugging i am getting error on the line

if (!iPositionRequestor)